From: Skip Montanaro Date: Tue, 27 Feb 2001 17:04:34 +0000 (+0000) Subject: conditionally include unistd.h to pick up confstr declaration. attempt to X-Git-Tag: v2.1b1~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8216c18984fb74a1d3ad06797076940ca96304e9;p=thirdparty%2FPython%2Fcpython.git conditionally include unistd.h to pick up confstr declaration. attempt to squelch warning from GCC 2.95.2 on Solaris - partially addresses bug #232787. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 19d62b832c34..ce77673a143f 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -40,6 +40,11 @@ corresponding Unix manual entries for more information on calls."; #include #endif /* HAVE_FCNTL_H */ +/* pick up declaration of confstr on some systems? */ +#ifdef HAVE_UNISTD_H +#include +#endif /* HAVE_UNISTD_H */ + /* Various compilers have only certain posix functions */ /* XXX Gosh I wish these were all moved into config.h */ #if defined(PYCC_VACPP) && defined(PYOS_OS2)