From 73bacfc3d7d00a4f3473c9d5bed276c958b40afb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 19 Jan 1998 22:05:22 +0000 Subject: Add unistd.h for isatty(). --- Modules/readline.c | 4 ++++ Python/frozenmain.c | 4 ++++ 2 files changed, 8 insertions(+) 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 #include +#ifdef HAVE_UNISTD_H +#include /* For isatty() */ +#endif + /* GNU readline definitions */ #include /* 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 /* For isatty() */ +#endif + /* Main program */ int -- cgit v0.12