]> granicus.if.org Git - php/commitdiff
fix compile warning on Solaris, getloadavg() is in sys/loadavg.h there
authorAntony Dovgal <tony2001@php.net>
Wed, 26 Jul 2006 08:57:11 +0000 (08:57 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 26 Jul 2006 08:57:11 +0000 (08:57 +0000)
configure.in
ext/standard/basic_functions.c

index 44ca16fc2a79a795cf4bf997deca51d870dac790..f2564f3f001cb5d0a2eddcb3fe06530dca9017c5 100644 (file)
@@ -372,6 +372,7 @@ sys/vfs.h \
 sys/sysexits.h \
 sys/varargs.h \
 sys/wait.h \
+sys/loadavg.h \
 termios.h \
 unistd.h \
 unix.h \
index 8337606d15fcd5e4516c95e50a168e6f7943592e..9da6061aba2c841fddcee4b02d31254e39c289d6 100644 (file)
@@ -78,6 +78,10 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
 # include <sys/mman.h>
 #endif
 
+#if HAVE_SYS_LOADAVG_H
+# include <sys/loadavg.h>
+#endif
+
 #ifdef HARTMUT_0
 #include <getopt.h>
 #endif