Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Jul 2005 07:37:58 +0000 (07:37 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Jul 2005 07:37:58 +0000 (07:37 +0000)
src/cat.c

index a7457bc..1972bd9 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
 #include <stdio.h>
 #include <getopt.h>
 #include <sys/types.h>
-#if HAVE_STROPT_H
-# include <stropt.h>
+
+#if HAVE_STROPTS_H
+# include <stropts.h>
 #endif
-#if HAVE_FIONREAD_IN_SYS_IOCTL
+#if HAVE_SYS_IOCTL_H
 # include <sys/ioctl.h>
 #endif
+
 #include "system.h"
 #include "error.h"
 #include "full-write.h"