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 | 81fbec63f47727f52dfa6bb3bb59aa28e9aa974f (patch) | |
tree | 48ca4c8681bb9aed84bfbadac112729b14a8afe5 /gdb/ser-tcp.c | |
parent | ec671c4a4e28826b4106499aa773542fbc23bf3c (diff) | |
download | gdb-81fbec63f47727f52dfa6bb3bb59aa28e9aa974f.tar.gz |
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 0e96f0322d5..6a6517744be 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> |