summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-01 09:51:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-01-01 09:51:12 (GMT)
commit14e73b186414d6e67cad9924ad72fab1a7d70861 (patch)
tree4989e166bf359950f0f0d3960175e241840aeadf /Modules/posixmodule.c
parent33fb554a135720783efb18bb3b3ae382e03ea0d4 (diff)
downloadcpython-14e73b186414d6e67cad9924ad72fab1a7d70861.zip
cpython-14e73b186414d6e67cad9924ad72fab1a7d70861.tar.gz
cpython-14e73b186414d6e67cad9924ad72fab1a7d70861.tar.bz2
Expose I_ constants. Auto-detect stropts.h. Properly configure the slave terminal.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index dff478a..cce8011 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2726,8 +2726,8 @@ posix_fork(PyObject *self, PyObject *args)
#include <libutil.h>
#endif /* HAVE_LIBUTIL_H */
#endif /* HAVE_PTY_H */
-#if defined(sun) || defined(__hpux)
-#include <sys/stropts.h>
+#ifdef HAVE_STROPTS_H
+#include <stropts.h>
#endif
#endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX */