From 8216c18984fb74a1d3ad06797076940ca96304e9 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Tue, 27 Feb 2001 17:04:34 +0000 Subject: conditionally include unistd.h to pick up confstr declaration. attempt to squelch warning from GCC 2.95.2 on Solaris - partially addresses bug #232787. --- Modules/posixmodule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 19d62b8..ce77673 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) -- cgit v0.12