aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-08-26 21:57:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-08-26 21:57:28 +0300
commit5e547510dfad2ce5f00e2f495b054c4331c62dfc (patch)
tree8147ac7a20873ade98f1d243ae68ed6ad38acf28
parentcd2504da556b8bb61b56a34727ef4ce5195ff9a0 (diff)
downloadegawk-5e547510dfad2ce5f00e2f495b054c4331c62dfc.tar.gz
egawk-5e547510dfad2ce5f00e2f495b054c4331c62dfc.tar.bz2
egawk-5e547510dfad2ce5f00e2f495b054c4331c62dfc.zip
Move include of sys/select.h to io.c.
-rw-r--r--awk.h4
-rw-r--r--io.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/awk.h b/awk.h
index 1a7dc242..c74c6881 100644
--- a/awk.h
+++ b/awk.h
@@ -152,10 +152,6 @@ typedef int off_t;
#include <strings.h>
#endif /* HAVE_STRINGS_H */
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif /* HAVE_SYS_SELECT_H */
-
#if HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
diff --git a/io.c b/io.c
index 8ebce698..f6b50314 100644
--- a/io.c
+++ b/io.c
@@ -76,6 +76,10 @@
#include <netdb.h>
#endif /* HAVE_NETDB_H */
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif /* HAVE_SYS_SELECT_H */
+
#ifndef HAVE_GETADDRINFO
#include "missing_d/getaddrinfo.h"
#endif