aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r--plugins/check_tcp.c4
1 files changed, 4 insertions, 0 deletions
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)