diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-07-21 11:53:26 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-07-21 11:53:26 +0000 |
commit | 97ecfa6226bea7c09f78b2b92d807e73467ffc08 (patch) | |
tree | 64976001badfb160994d606e1e055f15fb680258 /plugins/common.h | |
parent | f6d1cc53a803f0bc6787fa90ee327018734b099e (diff) | |
download | monitoring-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/common.h')
-rw-r--r-- | plugins/common.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ * *****************************************************************************/ +#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 |