[nagiosplug] added missing header to fix build on freebsd
Nagios Plugin Development
nagios-plugins at users.sourceforge.net
Tue Aug 20 17:10:17 CEST 2013
Module: nagiosplug
Branch: master
Commit: 4083622f86e1fe0fef1e81f23a2ca7a4614ea481
Author: Sven Nierlein <Sven.Nierlein at consol.de>
Committer: Sven Nierlein <sven at consol.de>
Date: Tue Aug 20 17:01:52 2013 +0200
URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=4083622
added missing header to fix build on freebsd
---
lib/utils_base.c | 1 +
plugins/common.h | 2 --
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 @@
#include <stdarg.h>
#include "utils_base.h"
#include <fcntl.h>
+#include <sys/stat.h>
#define np_free(ptr) { if(ptr) { free(ptr); ptr = NULL; } }
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 @@
#include <getopt.h>
#include "dirname.h"
-#ifdef HAVE_LOCALE_H
#include <locale.h>
-#endif
#ifdef HAVE_SYS_POLL_H
# include "sys/poll.h"
More information about the Commits
mailing list