diff options
-rw-r--r-- | configure.in | 5 | ||||
-rw-r--r-- | plugins/common.h | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/configure.in b/configure.in index b618c777..a6261c63 100644 --- a/configure.in +++ b/configure.in | |||
@@ -21,6 +21,7 @@ dnl Figure out how to invoke "install" and what install options to use. | |||
21 | AC_PROG_INSTALL | 21 | AC_PROG_INSTALL |
22 | AC_SUBST(INSTALL) | 22 | AC_SUBST(INSTALL) |
23 | 23 | ||
24 | AC_GNU_SOURCE | ||
24 | AC_PROG_CC | 25 | AC_PROG_CC |
25 | AC_PROG_CPP | 26 | AC_PROG_CPP |
26 | AC_PROG_GCC_TRADITIONAL | 27 | AC_PROG_GCC_TRADITIONAL |
@@ -31,6 +32,8 @@ AC_MINIX | |||
31 | AC_PROG_MAKE_SET | 32 | AC_PROG_MAKE_SET |
32 | AC_PROG_AWK | 33 | AC_PROG_AWK |
33 | 34 | ||
35 | |||
36 | |||
34 | saved_srcdir=$srcdir | 37 | saved_srcdir=$srcdir |
35 | srcdir=$srcdir/lib | 38 | srcdir=$srcdir/lib |
36 | test -f $srcdir/getloadavg.c \ | 39 | test -f $srcdir/getloadavg.c \ |
@@ -469,7 +472,7 @@ AC_HEADER_STDC | |||
469 | AC_HEADER_TIME | 472 | AC_HEADER_TIME |
470 | AC_HEADER_SYS_WAIT | 473 | AC_HEADER_SYS_WAIT |
471 | AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h) | 474 | AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h) |
472 | AC_CHECK_HEADERS(stdarg.h sys/unistd.h ctype.h stdlib.h) | 475 | AC_CHECK_HEADERS(features.h stdarg.h sys/unistd.h ctype.h stdlib.h) |
473 | AC_CHECK_HEADERS(limits.h sys/param.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h fcntl.h sys/statfs.h sys/dustat.h sys/statvfs.h) | 476 | AC_CHECK_HEADERS(limits.h sys/param.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h fcntl.h sys/statfs.h sys/dustat.h sys/statvfs.h) |
474 | 477 | ||
475 | # Define HAVE_INTTYPES_H if <inttypes.h> exists, | 478 | # Define HAVE_INTTYPES_H if <inttypes.h> exists, |
diff --git a/plugins/common.h b/plugins/common.h index 280333e0..4877eee7 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
@@ -30,12 +30,16 @@ | |||
30 | * | 30 | * |
31 | *****************************************************************************/ | 31 | *****************************************************************************/ |
32 | 32 | ||
33 | #include "config.h" | ||
34 | |||
35 | #ifdef HAVE_FEATURES_H | ||
36 | #include <features.h> | ||
37 | #endif | ||
38 | |||
33 | #include <stdio.h> /* obligatory includes */ | 39 | #include <stdio.h> /* obligatory includes */ |
34 | #include <stdlib.h> | 40 | #include <stdlib.h> |
35 | #include <errno.h> | 41 | #include <errno.h> |
36 | 42 | ||
37 | #include "config.h" | ||
38 | |||
39 | #ifdef HAVE_STRINGS_H | 43 | #ifdef HAVE_STRINGS_H |
40 | #include <strings.h> | 44 | #include <strings.h> |
41 | #endif | 45 | #endif |