]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add unistd.h for isatty().
authorGuido van Rossum <guido@python.org>
Mon, 19 Jan 1998 22:05:22 +0000 (22:05 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Jan 1998 22:05:22 +0000 (22:05 +0000)
Modules/readline.c
Python/frozenmain.c

index e12ae1d70e91bfac6b4cc127f1bdde877235b50c..c74aee08c1676bd3c435e1add3f859222aa85e25 100644 (file)
 #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 */
 
index 10fba54ce94ade310100716d69c22453f2c2cabb..c823fa1fab86ce4f825b3139684786f965014d21 100644 (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