summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-07-21 11:53:26 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-07-21 11:53:26 (GMT)
commit97ecfa6226bea7c09f78b2b92d807e73467ffc08 (patch)
tree64976001badfb160994d606e1e055f15fb680258 /plugins
parentf6d1cc53a803f0bc6787fa90ee327018734b099e (diff)
downloadmonitoring-plugins-97ecfa6226bea7c09f78b2b92d807e73467ffc08.tar.gz
test GNU_SOURCE and include features.h if present to clear warning about asprintf definition
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@596 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/common.h b/plugins/common.h
index 280333e..4877eee 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