]> granicus.if.org Git - python/commitdiff
Patch 977343, Solaris likes sys/loadavg.h. Added support for sys/loadavg.h
authorAnthony Baxter <anthonybaxter@gmail.com>
Wed, 13 Oct 2004 15:30:56 +0000 (15:30 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Wed, 13 Oct 2004 15:30:56 +0000 (15:30 +0000)
detection to configure &c.

Modules/posixmodule.c
configure
configure.in
pyconfig.h.in

index e71467bc25853881d8efed39d6256a658f11ecad..31d7c6181723d4b1c1aae2dbf444cb153fbacd4e 100644 (file)
@@ -67,6 +67,10 @@ corresponding Unix manual entries for more information on calls.");
 #include <sysexits.h>
 #endif /* HAVE_SYSEXITS_H */
 
+#ifdef HAVE_SYS_LOADAVG_H
+#include <sys/loadavg.h>
+#endif
+
 /* Various compilers have only certain posix functions */
 /* XXX Gosh I wish these were all moved into pyconfig.h */
 #if defined(PYCC_VACPP) && defined(PYOS_OS2)
index 5605a8c6a2e56f8c58964d9c21d84d96d8160e06..7b69003504361d44edb4a44aa4fae0c4521afb12 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.470 .
+# From configure.in Revision: 1.471 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.4.
 #
@@ -4530,13 +4530,15 @@ done
 
 
 
+
 
 
 for ac_header in curses.h dlfcn.h fcntl.h grp.h langinfo.h \
 libintl.h ncurses.h poll.h pthread.h \
 stropts.h termios.h thread.h \
 unistd.h utime.h \
-sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
+sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
+sys/modem.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 libutil.h \
 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
index f5f4ffc1edc4cc6eb8672a6c4351e509d4b57179..981d2bacba041f2bb8ce1eccdef7fff3d7e3a4a5 100644 (file)
@@ -959,7 +959,8 @@ AC_CHECK_HEADERS(curses.h dlfcn.h fcntl.h grp.h langinfo.h \
 libintl.h ncurses.h poll.h pthread.h \
 stropts.h termios.h thread.h \
 unistd.h utime.h \
-sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
+sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
+sys/modem.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 libutil.h \
 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
index a9f3d203cae16221b033ada3369d31cf091aac43..34501f4de12722ed5f1a03e9978d683591a9a022 100644 (file)
 /* Define to 1 if you have the <sys/file.h> header file. */
 #undef HAVE_SYS_FILE_H
 
+/* Define to 1 if you have the <sys/loadavg.h> header file. */
+#undef HAVE_SYS_LOADAVG_H
+
 /* Define to 1 if you have the <sys/lock.h> header file. */
 #undef HAVE_SYS_LOCK_H