]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
conditionally include unistd.h to pick up confstr declaration. attempt to
authorSkip Montanaro <skip@pobox.com>
Tue, 27 Feb 2001 17:04:34 +0000 (17:04 +0000)
committerSkip Montanaro <skip@pobox.com>
Tue, 27 Feb 2001 17:04:34 +0000 (17:04 +0000)
squelch warning from GCC 2.95.2 on Solaris - partially addresses bug
#232787.

Modules/posixmodule.c

index 19d62b832c34a99af1f20a0ae258133c62afe0e2..ce77673a143fdf83ec1c5cc3869ec7b23a81716b 100644 (file)
@@ -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)