diff options
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 0b2afce5..06bf8e76 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -227,7 +227,11 @@ process_arguments (int argc, char **argv) address_family = AF_INET; break; case '6': /* IPv6 only */ +#ifdef USE_IPV6 address_family = AF_INET6; +#else + usage ("IPv6 support not available\n"); +#endif break; case 'H': /* hostname */ ptr=optarg; |