From 66a50ece82529af83b724a4b72ee9fc76842c5b6 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sun, 12 Dec 2021 14:39:26 -0600 Subject: [PATCH] Include 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. --- src/lib/libast/features/lib | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/libast/features/lib b/src/lib/libast/features/lib index 70dfe5beb..f03f121b0 100644 --- a/src/lib/libast/features/lib +++ b/src/lib/libast/features/lib @@ -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 + #include _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 + #include _BEGIN_EXTERNS_ extern int pipe _ARG_((int*)); _END_EXTERNS_