diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-07 22:11:25 (GMT) |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-07 22:11:25 (GMT) |
commit | 7ceff0d5a95f5c5f34235ef6682595f169864d2f (patch) | |
tree | e153a07b7ba9416c1b7262ce00542e55cab9cb93 /plugins/common.h.in | |
parent | 1f7520fae4a776e0af2c5221071f1ff300de8727 (diff) | |
download | monitoring-plugins-7ceff0d5a95f5c5f34235ef6682595f169864d2f.tar.gz |
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
Diffstat (limited to 'plugins/common.h.in')
-rw-r--r-- | plugins/common.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/common.h.in b/plugins/common.h.in index 48e7f6f..09df00d 100644 --- a/plugins/common.h.in +++ b/plugins/common.h.in | |||
@@ -72,6 +72,13 @@ | |||
72 | 72 | ||
73 | #include <ctype.h> | 73 | #include <ctype.h> |
74 | 74 | ||
75 | #if HAVE_LWRES_NETDB_H | ||
76 | #include <lwres/netdb.h> | ||
77 | #elif !HAVE_GETADDRINFO | ||
78 | #include "getaddrinfo.h" | ||
79 | #else | ||
80 | #include <netdb.h> | ||
81 | #endif | ||
75 | 82 | ||
76 | /* | 83 | /* |
77 | * | 84 | * |