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"