Code

#ifdef can only test a single macro, not an expression.
[nagiosplug.git] / plugins / check_ping.c
index 211f74ef74c279742b64ea4077165b3ccd013d88..bf726d829a85b7d277f035bc4507502adfb8bdf6 100644 (file)
@@ -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);