From 97634d8fc6bba849f771eda24106d88104e703b9 Mon Sep 17 00:00:00 2001 From: "Jeremy T. Bouse" Date: Mon, 30 Jun 2003 18:52:38 +0000 Subject: 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 --- plugins/check_tcp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/check_tcp.c') diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index b8af1a1d..ce4fd31f 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -449,7 +449,11 @@ process_arguments (int argc, char **argv) address_family = AF_INET; break; case '6': +#ifdef USE_IPV6 address_family = AF_INET6; +#else + usage ("IPv6 support not available\n"); +#endif break; case 'H': /* hostname */ if (is_host (optarg) == FALSE) -- cgit v1.2.3-74-g34f1