From db7d10bd9d755f4dfbd45aac780bca6b9dd10626 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 8 Jul 2005 22:54:15 +0000 Subject: Include stropt.h if available. Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE to decide whether to include . --- src/cat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 #include #include -#ifndef _POSIX_SOURCE +#if HAVE_STROPT_H +# include +#endif +#if HAVE_FIONREAD_IN_SYS_IOCTL # include #endif #include "system.h" -- cgit v1.2.3-70-g09d2