diff options
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> |