summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.c
diff options
context:
space:
mode:
authorJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-06-30 18:52:38 (GMT)
committerJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-06-30 18:52:38 (GMT)
commit97634d8fc6bba849f771eda24106d88104e703b9 (patch)
tree88bc233fc2e2361c46c3b68a57a4f4fa44456e6c /plugins/netutils.c
parent2527943a443e2551e722ed6b8f1bc86f76dc823a (diff)
downloadmonitoring-plugins-97634d8fc6bba849f771eda24106d88104e703b9.tar.gz
Corrections to get code to compile on systems without IPv6 support
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@574 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r--plugins/netutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c
index 60410c6..ea004bb 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -326,7 +326,11 @@ is_host (char *address)
326int 326int
327is_addr (char *address) 327is_addr (char *address)
328{ 328{
329#ifdef USE_IPV6
329 if (is_inet_addr (address) && address_family != AF_INET6) 330 if (is_inet_addr (address) && address_family != AF_INET6)
331#else
332 if (is_inet_addr (address))
333#endif
330 return (TRUE); 334 return (TRUE);
331 335
332#ifdef USE_IPV6 336#ifdef USE_IPV6