From 27a624dd9f929af1330be508762057fa4fa8a0f5 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 23 Apr 2007 07:30:47 +0000 Subject: #ifdef can only test a single macro, not an expression. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1699 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 211f74ef..bf726d82 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -105,7 +105,7 @@ main (int argc, char **argv) /* If ./configure finds ping has timeout values, set plugin alarm slightly * higher so that we can use response from command line ping */ -#ifdef PING_PACKETS_FIRST && PING_HAS_TIMEOUT +#if defined(PING_PACKETS_FIRST) && defined(PING_HAS_TIMEOUT) alarm (timeout_interval + 1); #else alarm (timeout_interval); -- cgit v1.2.3-74-g34f1