mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
conditionally include unistd.h to pick up confstr declaration. attempt to
squelch warning from GCC 2.95.2 on Solaris - partially addresses bug #232787.
This commit is contained in:
parent
dd1753434a
commit
8216c18984
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue