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

index 9d9d0d45de1cbe0420479305582dc445ca5ae625..d826e1eadc3e53240eeaaf3d78ffeea83192f173 100644 (file)
@@ -374,6 +374,7 @@ sys/vfs.h \
 sys/sysexits.h \
 sys/varargs.h \
 sys/wait.h \
+sys/loadavg.h \
 termios.h \
 unistd.h \
 unix.h \
index 45f7c8bcbcafc173a5ac7b319ebac306c46780f3..ad13aba04c98fdc7524f2576c3e5a56248effccc 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