@@ -18,7 +18,7 @@
<http://www.gnu.org/licenses/>. */
#include <stdio.h>
-#include <sys/types.h>
+#include <sys/select.h>
static int
do_test (void)
@@ -20,6 +20,8 @@
#include <atomic.h>
#include <stap-probe.h>
+#include <sys/time.h>
+
static void
cleanup (void *arg)
{
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+#include <sys/select.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/ipc.h>
@@ -93,9 +93,6 @@ __BEGIN_DECLS
/* In BSD <sys/types.h> is expected to define BYTE_ORDER. */
# include <endian.h>
-
-/* It also defines `fd_set' and the FD_* macros for `select'. */
-# include <sys/select.h>
#endif /* Use misc. */
__END_DECLS
@@ -46,6 +46,7 @@ while read t; do
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/resource.h>
+#include <sys/select.h>
#include <unistd.h>
void foo ($t) { }
EOF
@@ -530,13 +530,13 @@ HEADER_ALLOWED_INCLUDES = {
# mandated: sys/msg.h -> sys/ipc.h
# sys/sem.h -> sys/ipc.h
# sys/shm.h -> sys/ipc.h
- # allowed: sys/time.h -> sys/select.h
- # sys/wait.h -> signal.h
+ # sys/time.h -> sys/select.h (effectively)
+ # allowed: sys/wait.h -> signal.h
"sys/msg.h": [ "sys/ipc.h" ],
"sys/sem.h": [ "sys/ipc.h" ],
"sys/shm.h": [ "sys/ipc.h" ],
"sys/time.h": [ "sys/select.h" ],
- "sys/types.h": [ "endian.h", "sys/select.h" ],
+ "sys/types.h": [ "endian.h" ],
"sys/uio.h": [ "sys/types.h" ],
"sys/un.h": [ "string.h" ],
"sys/wait.h": [ "signal.h" ],
@@ -35,6 +35,10 @@ __BEGIN_DECLS
# include <bits/types/struct_osockaddr.h>
#endif
+#ifdef __USE_GNU
+struct timespec;
+#endif
+
/* The following constants should be used for the second parameter of
`shutdown'. */
enum
@@ -53,6 +53,7 @@
#include <features.h>
#include <rpc/rpc_msg.h>
+#include <sys/select.h>
__BEGIN_DECLS
@@ -26,7 +26,7 @@
#include <stdint.h>
#include <sys/types.h>
#include <sys/procfs.h>
-
+#include <bits/types/sigset_t.h>
/* Error codes of the library. */
typedef enum
@@ -23,6 +23,12 @@
#include <ldsodefs.h>
#include <dl-hash.h>
+/* This header must declare all functions that might be looked up
+ in the vDSO by code fragments generated by make-syscalls.sh.
+ At present the only such function that isn't covered by the above
+ headers is gettimeofday. */
+#include <sys/time.h>
+
/* Create version number record for lookup. */
#define PREPARE_VERSION(var, vname, vhash) \
struct r_found_version var; \
@@ -19,7 +19,7 @@
#include <errno.h>
#include <signal.h>
#include <time.h>
-#include <sys/poll.h>
+#include <sys/select.h>
#include <kernel-features.h>
#include <sysdep-cancel.h>