Module: monitoring-plugins
 Branch: master
 Commit: cbddc7dbb4c218df453d3c14abe0ce21c17b6cce
 Author: Alvar Penning <[email protected]>
   Date: Wed Dec 10 21:09:05 2025 +0100
    URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=cbddc7db

plugins-root/check_icmp: Import sys/ioctl.h

The ioctl(2) call within "#if defined(SIOCGIFADDR)" requires the include.

---

 plugins-root/check_icmp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index d46d2ccc..a5909c44 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -54,6 +54,9 @@ const char *email = "[email protected]";
 #endif
 
 #include <sys/time.h>
+#if defined(SIOCGIFADDR)
+#include <sys/ioctl.h>
+#endif /* SIOCGIFADDR */
 #include <errno.h>
 #include <signal.h>
 #include <ctype.h>

Reply via email to