summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-09 07:37:58 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-09 07:37:58 +0000
commit8bf75032ee4a518616d0e2af818182450db574c6 (patch)
tree3a0828af9f372c68d3218b2a7a95fbe2095113d8 /src/cat.c
parent9e9532c8ffecfff9c68f577c82b427f3c109b630 (diff)
downloadcoreutils-8bf75032ee4a518616d0e2af818182450db574c6.tar.xz
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
Diffstat (limited to 'src/cat.c')
-rw-r--r--src/cat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cat.c b/src/cat.c
index a7457bc96..1972bd908 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -27,12 +27,14 @@
#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"