mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Include <unistd.h> in "fd is * arg to poll" tests (#376)
The "fd is first arg to poll()" and "fd is second arg to poll()" tests use write() but don't include the system header in which that function is declared, leading to "error: implicit declaration of function 'write' is invalid in C99'" when trying to compile the test. By including the header, the test can now compile and run as intended.
This commit is contained in:
parent
b31fe887b8
commit
66a50ece82
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ tst tst_errno note{ errno can be assigned }end link{
|
|||
|
||||
tst lib_poll_fd_1 note{ fd is first arg to poll() }end execute{
|
||||
#include <poll.h>
|
||||
#include <unistd.h>
|
||||
_BEGIN_EXTERNS_
|
||||
extern int pipe _ARG_((int*));
|
||||
_END_EXTERNS_
|
||||
|
@ -95,6 +96,7 @@ tst lib_poll_fd_1 note{ fd is first arg to poll() }end execute{
|
|||
|
||||
tst lib_poll_fd_2 note{ fd is second arg to poll() }end execute{
|
||||
#include <poll.h>
|
||||
#include <unistd.h>
|
||||
_BEGIN_EXTERNS_
|
||||
extern int pipe _ARG_((int*));
|
||||
_END_EXTERNS_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue