summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat.c')
-rw-r--r--src/cat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cat.c b/src/cat.c
index 8f1b2bfc5..a7457bc96 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -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"