mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add unistd.h for isatty().
This commit is contained in:
parent
3dacdc306e
commit
73bacfc3d7
2 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,10 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#include <unistd.h> /* For isatty() */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GNU readline definitions */
|
/* GNU readline definitions */
|
||||||
#include <readline/readline.h> /* You may need to add an -I option to Setup */
|
#include <readline/readline.h> /* You may need to add an -I option to Setup */
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,10 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#include <unistd.h> /* For isatty() */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Main program */
|
/* Main program */
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue