[Python-checkins] python/dist/src/Modules posixmodule.c,2.278,2.279

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
2002年12月31日 08:16:10 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv11611/Modules
Modified Files:
	posixmodule.c 
Log Message:
Fix compilation errors on HPUX11
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.278
retrieving revision 2.279
diff -C2 -d -r2.278 -r2.279
*** posixmodule.c	31 Dec 2002 14:30:26 -0000	2.278
--- posixmodule.c	31 Dec 2002 16:16:07 -0000	2.279
***************
*** 2727,2731 ****
 #endif /* HAVE_LIBUTIL_H */
 #endif /* HAVE_PTY_H */
! #ifdef sun
 #include <sys/stropts.h>
 #endif
--- 2727,2731 ----
 #endif /* HAVE_LIBUTIL_H */
 #endif /* HAVE_PTY_H */
! #if defined(sun) || defined(__hpux)
 #include <sys/stropts.h>
 #endif
***************
*** 2790,2796 ****
 	ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
 	ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
! #ifndef _hpux
 	ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */
! #endif /* _hpux */
 #endif /* HAVE_CYGWIN */
 #endif /* HAVE_OPENPTY */
--- 2790,2796 ----
 	ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
 	ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
! #ifndef __hpux
 	ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */
! #endif /* __hpux */
 #endif /* HAVE_CYGWIN */
 #endif /* HAVE_OPENPTY */

AltStyle によって変換されたページ (->オリジナル) /