strengthen self-containedness check for sys/select.h
[pspp] / tests / test-sys_select.c
index 6bdd650831b85f0c905fe2607bf73ca274d62ea5..053b6c68d713f764ac0f5a02192a7252d6cba404 100644 (file)
 
 #include <config.h>
 
+#include <sys/select.h>
+
+/* Check that the 'struct timeval' type is defined.  */
+struct timeval t1;
+
 #include <stdio.h>
 #include <string.h>
-#include <sys/select.h>
-#include <sys/time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <fcntl.h>