Procházet zdrojové kódy

#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
Holger Weiss před 19 roky
rodič
revize
27a624dd9f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      plugins/check_ping.c

+ 1 - 1
plugins/check_ping.c

@@ -105,7 +105,7 @@ main (int argc, char **argv)
 
 
 	/* If ./configure finds ping has timeout values, set plugin alarm slightly
 	/* If ./configure finds ping has timeout values, set plugin alarm slightly
 	 * higher so that we can use response from command line ping */
 	 * 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);
 	alarm (timeout_interval + 1);
 #else
 #else
 	alarm (timeout_interval);
 	alarm (timeout_interval);