Commit 73bacfc3 authored by Guido van Rossum's avatar Guido van Rossum

Add unistd.h for isatty().

parent 3dacdc30
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
#include <signal.h> #include <signal.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* For isatty() */
#endif
/* GNU readline definitions */ /* GNU readline definitions */
#include <readline/readline.h> /* You may need to add an -I option to Setup */ #include <readline/readline.h> /* You may need to add an -I option to Setup */
......
...@@ -33,6 +33,10 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -33,6 +33,10 @@ PERFORMANCE OF THIS SOFTWARE.
#include "Python.h" #include "Python.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* For isatty() */
#endif
/* Main program */ /* Main program */
int int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment