summaryrefslogtreecommitdiffstats
path: root/plugins/common.h
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-01-24 22:47:25 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2007-01-24 22:47:25 (GMT)
commitfe856aa957978504137c1d425815d4ed8a22be40 (patch)
treea5bb46ce0e64b2056f75700eadbf27aba7c39418 /plugins/common.h
parent210f39bc84cfbb21cd72dc054e43f13815ee0616 (diff)
downloadmonitoring-plugins-fe856aa957978504137c1d425815d4ed8a22be40.tar.gz
Sync with gnulib - lots of extraneous code removed in preference to GNU code
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1580 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/common.h')
-rw-r--r--plugins/common.h31
1 files changed, 4 insertions, 27 deletions
diff --git a/plugins/common.h b/plugins/common.h
index b335743..69cd800 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -103,18 +103,11 @@
103#include <signal.h> 103#include <signal.h>
104#endif 104#endif
105 105
106/* GNU Libraries */
106#include <getopt.h> 107#include <getopt.h>
107#include <ctype.h> 108#include "vasprintf.h"
108 109#include "snprintf.h"
109#ifdef HAVE_LWRES_NETDB_H 110#include "vsnprintf.h"
110#include <lwres/netdb.h>
111#else
112# if !HAVE_GETADDRINFO
113# include "getaddrinfo.h"
114# else
115# include <netdb.h>
116# endif
117#endif
118 111
119#ifdef HAVE_LOCALE_H 112#ifdef HAVE_LOCALE_H
120#include <locale.h> 113#include <locale.h>
@@ -138,22 +131,6 @@
138# define strtoul(a,b,c) (unsigned long)atol((a)) 131# define strtoul(a,b,c) (unsigned long)atol((a))
139#endif 132#endif
140 133
141#ifndef HAVE_ASPRINTF
142int asprintf(char **strp, const char *fmt, ...);
143#endif
144
145#ifndef HAVE_VASPRINTF
146/* int vasprintf(char **strp, const char *fmt, va_list ap); */
147#endif
148
149#ifndef HAVE_SNPRINTF
150int snprintf(char *str, size_t size, const char *format, ...);
151#endif
152
153#ifndef HAVE_VSNPRINTF
154int vsnprintf(char *str, size_t size, const char *format, va_list ap);
155#endif
156
157/* SSL implementations */ 134/* SSL implementations */
158#ifdef HAVE_GNUTLS_OPENSSL_H 135#ifdef HAVE_GNUTLS_OPENSSL_H
159# include <gnutls/openssl.h> 136# include <gnutls/openssl.h>