summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-01-19 22:05:22 (GMT)
committerGuido van Rossum <guido@python.org>1998-01-19 22:05:22 (GMT)
commit73bacfc3d7d00a4f3473c9d5bed276c958b40afb (patch)
treea5a96a3570938b2e38f2645b9b8f8e4a298dabe9
parent3dacdc306e68fb0e4b1258008ad93ad0582e8f40 (diff)
downloadcpython-73bacfc3d7d00a4f3473c9d5bed276c958b40afb.zip
cpython-73bacfc3d7d00a4f3473c9d5bed276c958b40afb.tar.gz
cpython-73bacfc3d7d00a4f3473c9d5bed276c958b40afb.tar.bz2
Add unistd.h for isatty().
-rw-r--r--Modules/readline.c4
-rw-r--r--Python/frozenmain.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index e12ae1d..c74aee0 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -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 */
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index 10fba54..c823fa1 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -33,6 +33,10 @@ PERFORMANCE OF THIS SOFTWARE.
#include "Python.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> /* For isatty() */
+#endif
+
/* Main program */
int