summaryrefslogtreecommitdiffstats
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2001-12-07 17:57:05 +0000
committerMartin Hunt <hunt@redhat.com>2001-12-07 17:57:05 +0000
commit0cf3e697e4236ec4baabbc7aac766580ee30d202 (patch)
tree1f93be94f9b602c58912c79b4418fc45b4318012 /gdb/ser-tcp.c
parentbafdd3b3f6cad9754b1ee83a0f14839b59a0a188 (diff)
downloadppe42-binutils-0cf3e697e4236ec4baabbc7aac766580ee30d202.tar.gz
ppe42-binutils-0cf3e697e4236ec4baabbc7aac766580ee30d202.zip
2001-12-07 Martin M. Hunt <hunt@redhat.com>
* configure.in: Check for sys/filio.h * configure: Rebuild. * config.in: Add HAVE_SYS_FILIO_H * ser-tcp.c: Conditionally include sys/filio.h.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index 0e96f0322d..6a6517744b 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -24,7 +24,14 @@
#include "ser-unix.h"
#include <sys/types.h>
-#include <sys/ioctl.h>
+
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h> /* For FIONBIO. */
+#endif
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h> /* For FIONBIO. */
+#endif
+
#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
OpenPOWER on IntegriCloud