From 7ceff0d5a95f5c5f34235ef6682595f169864d2f Mon Sep 17 00:00:00 2001 From: "Jeremy T. Bouse" Date: Fri, 7 Mar 2003 22:11:25 +0000 Subject: Added getaddrinfo.[ch] & gethostbyname.[ch] to provide RFC2553 functions if missing in system libs and lwres not present Moved all references to netdb.h and sys/socket.h into common.h.in Modified automake call in tools/setup to include adding missing files so config.sub and config.guess will be available git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@376 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/common.h.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/common.h.in') diff --git a/plugins/common.h.in b/plugins/common.h.in index 48e7f6f4..09df00dd 100644 --- a/plugins/common.h.in +++ b/plugins/common.h.in @@ -72,6 +72,13 @@ #include +#if HAVE_LWRES_NETDB_H +#include +#elif !HAVE_GETADDRINFO +#include "getaddrinfo.h" +#else +#include +#endif /* * -- cgit v1.2.3