summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-04 10:47:59 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-04 10:47:59 (GMT)
commite6c67a72637a9cb9166d702b02cff39877ac19bb (patch)
tree304bf77885066686527020dca1cce524f0dcb13b /Python
parent054ff1f29e87ef5d01657027aa1148e4d65f7469 (diff)
downloadcpython-e6c67a72637a9cb9166d702b02cff39877ac19bb.zip
cpython-e6c67a72637a9cb9166d702b02cff39877ac19bb.tar.gz
cpython-e6c67a72637a9cb9166d702b02cff39877ac19bb.tar.bz2
Added isatty() for MPW.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonmain.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/pythonmain.c b/Python/pythonmain.c
index aee8664..6602e2b 100644
--- a/Python/pythonmain.c
+++ b/Python/pythonmain.c
@@ -425,6 +425,16 @@ isatty(fd)
return fd == fileno(stdin);
}
+#ifdef macintosh
+/* same */
+int
+isatty(fd)
+ int fd;
+{
+ return fd == fileno(stdin);
+}
+#endif
+
#endif
/* XXX WISH LIST