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.
This commit is contained in:
Martin Hunt
2001-12-07 17:57:05 +00:00
parent bafdd3b3f6
commit 0cf3e697e4
5 changed files with 20 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
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.
2001-12-07 Andrew Cagney <ac131313@redhat.com>
* ui-out.c (ui_out_table_begin): Initialize body_flag.

View File

@@ -343,6 +343,9 @@
/* Define if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
/* Define if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
/* Define if you have the <sys/ndir.h> header file. */
#undef HAVE_SYS_NDIR_H

2
gdb/configure vendored
View File

@@ -3407,7 +3407,7 @@ for ac_hdr in ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
dirent.h sys/ndir.h sys/dir.h ndir.h \
dirent.h sys/ndir.h sys/dir.h ndir.h sys/filio.h \
curses.h ncurses.h \
poll.h sys/poll.h
do

View File

@@ -124,7 +124,7 @@ AC_CHECK_HEADERS(ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
dirent.h sys/ndir.h sys/dir.h ndir.h \
dirent.h sys/ndir.h sys/dir.h ndir.h sys/filio.h \
curses.h ncurses.h \
poll.h sys/poll.h)
AC_HEADER_STAT

View File

@@ -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>