mirror of
https://github.com/python/cpython.git
synced 2025-07-31 15:14:22 +00:00
Fix compilation errors on HPUX11
This commit is contained in:
parent
6655e4bc27
commit
6700e47b3c
1 changed files with 3 additions and 3 deletions
|
@ -2726,7 +2726,7 @@ posix_fork(PyObject *self, PyObject *args)
|
||||||
#include <libutil.h>
|
#include <libutil.h>
|
||||||
#endif /* HAVE_LIBUTIL_H */
|
#endif /* HAVE_LIBUTIL_H */
|
||||||
#endif /* HAVE_PTY_H */
|
#endif /* HAVE_PTY_H */
|
||||||
#ifdef sun
|
#if defined(sun) || defined(__hpux)
|
||||||
#include <sys/stropts.h>
|
#include <sys/stropts.h>
|
||||||
#endif
|
#endif
|
||||||
#endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX */
|
#endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX */
|
||||||
|
@ -2789,9 +2789,9 @@ posix_openpty(PyObject *self, PyObject *args)
|
||||||
#ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
|
ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
|
||||||
ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
|
ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
|
||||||
#ifndef _hpux
|
#ifndef __hpux
|
||||||
ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */
|
ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */
|
||||||
#endif /* _hpux */
|
#endif /* __hpux */
|
||||||
#endif /* HAVE_CYGWIN */
|
#endif /* HAVE_CYGWIN */
|
||||||
#endif /* HAVE_OPENPTY */
|
#endif /* HAVE_OPENPTY */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue