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:
Skip Montanaro 2001-02-27 17:04:34 +00:00
parent dd1753434a
commit 8216c18984
1 changed files with 5 additions and 0 deletions

View 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)