summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <Sven.Nierlein@consol.de>2013-08-20 15:01:52 (GMT)
committerSven Nierlein <sven@consol.de>2013-08-20 15:02:02 (GMT)
commit4083622f86e1fe0fef1e81f23a2ca7a4614ea481 (patch)
tree217072824a91a8514e62308dc4ad3cea2ca22427
parent4eab02cdaf01e1c44707586e3781a09c44b6aabe (diff)
downloadmonitoring-plugins-4083622f86e1fe0fef1e81f23a2ca7a4614ea481.tar.gz
added missing header to fix build on freebsd
-rw-r--r--lib/utils_base.c1
-rw-r--r--plugins/common.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c
index c93e9c3..8685e6f 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -28,6 +28,7 @@
28#include <stdarg.h> 28#include <stdarg.h>
29#include "utils_base.h" 29#include "utils_base.h"
30#include <fcntl.h> 30#include <fcntl.h>
31#include <sys/stat.h>
31 32
32#define np_free(ptr) { if(ptr) { free(ptr); ptr = NULL; } } 33#define np_free(ptr) { if(ptr) { free(ptr); ptr = NULL; } }
33 34
diff --git a/plugins/common.h b/plugins/common.h
index 8f05c15..f135838 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -117,9 +117,7 @@
117#include <getopt.h> 117#include <getopt.h>
118#include "dirname.h" 118#include "dirname.h"
119 119
120#ifdef HAVE_LOCALE_H
121#include <locale.h> 120#include <locale.h>
122#endif
123 121
124#ifdef HAVE_SYS_POLL_H 122#ifdef HAVE_SYS_POLL_H
125# include "sys/poll.h" 123# include "sys/poll.h"