Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a560de

Browse files
committed
Patch 977343, Solaris likes sys/loadavg.h. Added support for sys/loadavg.h
detection to configure &c.
1 parent e4f8a48 commit 8a560de

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

Modules/posixmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ corresponding Unix manual entries for more information on calls.");
6767
#include <sysexits.h>
6868
#endif /* HAVE_SYSEXITS_H */
6969

70+
#ifdef HAVE_SYS_LOADAVG_H
71+
#include <sys/loadavg.h>
72+
#endif
73+
7074
/* Various compilers have only certain posix functions */
7175
/* XXX Gosh I wish these were all moved into pyconfig.h */
7276
#if defined(PYCC_VACPP) && defined(PYOS_OS2)

configure

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 1.470 .
2+
# From configure.in Revision: 1.471 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.59 for python 2.4.
55
#
@@ -4530,13 +4530,15 @@ done
45304530

45314531

45324532

4533+
45334534

45344535

45354536
for ac_header in curses.h dlfcn.h fcntl.h grp.h langinfo.h \
45364537
libintl.h ncurses.h poll.h pthread.h \
45374538
stropts.h termios.h thread.h \
45384539
unistd.h utime.h \
4539-
sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
4540+
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4541+
sys/modem.h \
45404542
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
45414543
sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
45424544
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \

configure.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,8 @@ AC_CHECK_HEADERS(curses.h dlfcn.h fcntl.h grp.h langinfo.h \
959959
libintl.h ncurses.h poll.h pthread.h \
960960
stropts.h termios.h thread.h \
961961
unistd.h utime.h \
962-
sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
962+
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
963+
sys/modem.h \
963964
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
964965
sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
965966
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \

pyconfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@
512512
/* Define to 1 if you have the <sys/file.h> header file. */
513513
#undef HAVE_SYS_FILE_H
514514

515+
/* Define to 1 if you have the <sys/loadavg.h> header file. */
516+
#undef HAVE_SYS_LOADAVG_H
517+
515518
/* Define to 1 if you have the <sys/lock.h> header file. */
516519
#undef HAVE_SYS_LOCK_H
517520

0 commit comments

Comments
 (0)