summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-06-30 18:52:38 +0000
committerJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-06-30 18:52:38 +0000
commit97634d8fc6bba849f771eda24106d88104e703b9 (patch)
tree88bc233fc2e2361c46c3b68a57a4f4fa44456e6c /plugins/check_ping.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/check_ping.c')
-rw-r--r--plugins/check_ping.c4
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)
227 address_family = AF_INET; 227 address_family = AF_INET;
228 break; 228 break;
229 case '6': /* IPv6 only */ 229 case '6': /* IPv6 only */
230#ifdef USE_IPV6
230 address_family = AF_INET6; 231 address_family = AF_INET6;
232#else
233 usage ("IPv6 support not available\n");
234#endif
231 break; 235 break;
232 case 'H': /* hostname */ 236 case 'H': /* hostname */
233 ptr=optarg; 237 ptr=optarg;