[nagiosplug] added missing header to fix build on freebsd

"Nagios Plugin Development" <[email protected]> Tue, 20 Aug 2013 15:10:17 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
    Module: nagiosplug
    Branch: master
    Commit: 4083622f86e1fe0fef1e81f23a2ca7a4614ea481
    Author: Sven Nierlein <[email protected]>
 Committer: Sven Nierlein <[email protected]>
      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"


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk