Code

Include <sys/sockio.h> (if available) to get SIOCGIFADDR defined on
[nagiosplug.git] / plugins-root / check_icmp.c
index 80fbf61339c9e21f14c47999336813f1ea671e64..77ddfee0ec77c46f5c6b2a0defa2e3dde37cfda6 100644 (file)
@@ -54,6 +54,9 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
 #include "netutils.h"
 #include "utils.h"
 
+#if HAVE_SYS_SOCKIO_H
+#include <sys/sockio.h>
+#endif
 #include <sys/ioctl.h>
 #include <sys/time.h>
 #include <sys/types.h>