Add unistd.h for isatty().

This commit is contained in:
Guido van Rossum 1998-01-19 22:05:22 +00:00
parent 3dacdc306e
commit 73bacfc3d7
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,10 @@
#include <signal.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* For isatty() */
#endif
/* GNU readline definitions */
#include <readline/readline.h> /* You may need to add an -I option to Setup */

View File

@ -33,6 +33,10 @@ PERFORMANCE OF THIS SOFTWARE.
#include "Python.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* For isatty() */
#endif
/* Main program */
int