diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 16:16:07 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 16:16:07 (GMT) |
commit | 6700e47b3c278dce4e4f12ed9e85964efa46788c (patch) | |
tree | a1b4bf132ab2886bcc758ec3368f70a5f1295f12 | |
parent | 6655e4bc2752f1114a2e1f9a63ffd4191fa50d0d (diff) | |
download | cpython-6700e47b3c278dce4e4f12ed9e85964efa46788c.zip cpython-6700e47b3c278dce4e4f12ed9e85964efa46788c.tar.gz cpython-6700e47b3c278dce4e4f12ed9e85964efa46788c.tar.bz2 |
Fix compilation errors on HPUX11
-rw-r--r-- | Modules/posixmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ce0bc5b..dff478a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -2726,7 +2726,7 @@ posix_fork(PyObject *self, PyObject *args) #include <libutil.h> #endif /* HAVE_LIBUTIL_H */ #endif /* HAVE_PTY_H */ -#ifdef sun +#if defined(sun) || defined(__hpux) #include <sys/stropts.h> #endif #endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX */ @@ -2789,9 +2789,9 @@ posix_openpty(PyObject *self, PyObject *args) #ifndef __CYGWIN__ ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */ ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */ -#ifndef _hpux +#ifndef __hpux ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */ -#endif /* _hpux */ +#endif /* __hpux */ #endif /* HAVE_CYGWIN */ #endif /* HAVE_OPENPTY */ |