From: Guido van Rossum Date: Mon, 19 Jan 1998 22:05:22 +0000 (+0000) Subject: Add unistd.h for isatty(). X-Git-Tag: v1.5.1~938 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73bacfc3d7d00a4f3473c9d5bed276c958b40afb;p=thirdparty%2FPython%2Fcpython.git Add unistd.h for isatty(). --- diff --git a/Modules/readline.c b/Modules/readline.c index e12ae1d70e91..c74aee08c167 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 10fba54ce94a..c823fa1fab86 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