Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73bacfc

Browse files
committed
Add unistd.h for isatty().
1 parent 3dacdc3 commit 73bacfc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Modules/readline.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#include <signal.h>
1313
#include <errno.h>
1414

15+
#ifdef HAVE_UNISTD_H
16+
#include <unistd.h> /* For isatty() */
17+
#endif
18+
1519
/* GNU readline definitions */
1620
#include <readline/readline.h> /* You may need to add an -I option to Setup */
1721

Python/frozenmain.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ PERFORMANCE OF THIS SOFTWARE.
3333

3434
#include "Python.h"
3535

36+
#ifdef HAVE_UNISTD_H
37+
#include <unistd.h> /* For isatty() */
38+
#endif
39+
3640
/* Main program */
3741

3842
int

0 commit comments

Comments
 (0)