From: Paul Eggert Date: Fri, 8 Jul 2005 22:54:15 +0000 (+0000) Subject: Include stropt.h if available. X-Git-Tag: CPPI-1_12~291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db7d10bd9d755f4dfbd45aac780bca6b9dd10626;p=thirdparty%2Fcoreutils.git Include stropt.h if available. Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE to decide whether to include . --- diff --git a/src/cat.c b/src/cat.c index 8f1b2bfc5f..a7457bc96e 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"