Include stropt.h if available.

Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE
to decide whether to include <sys/ioctl.h>.
This commit is contained in:
Paul Eggert committed 2005-07-08 22:54:15 +00:00
1 parent cb59a7d3d0
commit db7d10bd9d
1 file changed
+4 -1
+4 -1
View File
@@ -27,7 +27,10 @@
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
#ifndef _POSIX_SOURCE
#if HAVE_STROPT_H
# include <stropt.h>
#endif
#if HAVE_FIONREAD_IN_SYS_IOCTL
# include <sys/ioctl.h>
#endif
#include "system.h"