diff options
author | Skip Montanaro <skip@pobox.com> | 2001-02-27 17:04:34 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2001-02-27 17:04:34 (GMT) |
commit | 8216c18984fb74a1d3ad06797076940ca96304e9 (patch) | |
tree | a7d90ec7b2e96cfb7bb0c83696c1d0175325f12c /Modules | |
parent | dd1753434a145a2a73abf6f733daba76a6b4a862 (diff) | |
download | cpython-8216c18984fb74a1d3ad06797076940ca96304e9.zip cpython-8216c18984fb74a1d3ad06797076940ca96304e9.tar.gz cpython-8216c18984fb74a1d3ad06797076940ca96304e9.tar.bz2 |
conditionally include unistd.h to pick up confstr declaration. attempt to
squelch warning from GCC 2.95.2 on Solaris - partially addresses bug
#232787.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <fcntl.h> #endif /* HAVE_FCNTL_H */ +/* pick up declaration of confstr on some systems? */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#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) |