diff options
author | Martin Hunt <hunt@redhat.com> | 2001-12-07 17:57:05 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 2001-12-07 17:57:05 +0000 |
commit | 0cf3e697e4236ec4baabbc7aac766580ee30d202 (patch) | |
tree | 1f93be94f9b602c58912c79b4418fc45b4318012 /gdb/ser-tcp.c | |
parent | bafdd3b3f6cad9754b1ee83a0f14839b59a0a188 (diff) | |
download | gdb-0cf3e697e4236ec4baabbc7aac766580ee30d202.zip gdb-0cf3e697e4236ec4baabbc7aac766580ee30d202.tar.gz gdb-0cf3e697e4236ec4baabbc7aac766580ee30d202.tar.bz2 |
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.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 0e96f03..6a65177 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> |