From 3d94942000dde4266487969eb75f27fd3d46099f Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 20 Apr 2002 13:46:43 +0000 Subject: #546163, fix link problem on Solaris 8 for makedev when using mknod --- Modules/posixmodule.c | 3 +++ configure | 3 ++- configure.in | 2 +- pyconfig.h.in | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index b9aa28a..fb35b1a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -278,6 +278,9 @@ extern int lstat(const char *, struct stat *); # define STRUCT_STAT struct stat #endif +#if defined(HAVE_MKNOD) && defined(HAVE_SYS_MKDEV_H) +#include +#endif /* Return a dictionary corresponding to the POSIX environment table */ diff --git a/configure b/configure index d010d5e..cc8c477 100755 --- a/configure +++ b/configure @@ -3854,10 +3854,11 @@ fi + for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \ libintl.h locale.h ncurses.h poll.h pthread.h \ signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ -sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ +sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h db_185.h db.h \ sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h diff --git a/configure.in b/configure.in index 8f76399..fb322f2 100644 --- a/configure.in +++ b/configure.in @@ -594,7 +594,7 @@ AC_HEADER_STDC AC_CHECK_HEADERS(dlfcn.h fcntl.h grp.h limits.h langinfo.h \ libintl.h locale.h ncurses.h poll.h pthread.h \ signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ -sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ +sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h db_185.h db.h \ sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h) diff --git a/pyconfig.h.in b/pyconfig.h.in index 24dc3d1..8e96db2 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -475,6 +475,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_LOCK_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MKDEV_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MODEM_H -- cgit v0.12