summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6d1cc5)
raw | patch | inline | side by side (parent: f6d1cc5)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Mon, 21 Jul 2003 11:53:26 +0000 (11:53 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Mon, 21 Jul 2003 11:53:26 +0000 (11:53 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@596 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history | |
plugins/common.h | patch | blob | history |
diff --git a/configure.in b/configure.in
index b618c77795788f2a449be5de7ff46564ca619d6e..a6261c63eb9be4dd88489a965d33aa315bb2fffb 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_PROG_INSTALL
AC_SUBST(INSTALL)
+AC_GNU_SOURCE
AC_PROG_CC
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
AC_PROG_MAKE_SET
AC_PROG_AWK
+
+
saved_srcdir=$srcdir
srcdir=$srcdir/lib
test -f $srcdir/getloadavg.c \
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
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)
-AC_CHECK_HEADERS(stdarg.h sys/unistd.h ctype.h stdlib.h)
+AC_CHECK_HEADERS(features.h stdarg.h sys/unistd.h ctype.h stdlib.h)
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)
# Define HAVE_INTTYPES_H if <inttypes.h> exists,
diff --git a/plugins/common.h b/plugins/common.h
index 280333e0e31d3fac980db28369e82ee2ee9ca349..4877eee78b79d4b0c4c1c9cfeb329fb759b6e004 100644 (file)
--- a/plugins/common.h
+++ b/plugins/common.h
*
*****************************************************************************/
+#include "config.h"
+
+#ifdef HAVE_FEATURES_H
+#include <features.h>
+#endif
+
#include <stdio.h> /* obligatory includes */
#include <stdlib.h>
#include <errno.h>
-#include "config.h"
-
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif