summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_icmp.c
diff options
context:
space:
mode:
authorAlvar Penning <post@0x21.biz>2025-12-10 21:09:05 +0100
committerAlvar Penning <post@0x21.biz>2025-12-11 21:05:49 +0100
commitcbddc7dbb4c218df453d3c14abe0ce21c17b6cce (patch)
tree2821bf3d743e031306d0f6fb15346440a4ddeecc /plugins-root/check_icmp.c
parentca5c2b3a5fb4e3c2d8024c23a9566f64572c0882 (diff)
downloadmonitoring-plugins-cbddc7dbb4c218df453d3c14abe0ce21c17b6cce.tar.gz
plugins-root/check_icmp: Import sys/ioctl.h
The ioctl(2) call within "#if defined(SIOCGIFADDR)" requires the include.
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r--plugins-root/check_icmp.c3
1 files changed, 3 insertions, 0 deletions
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 = "devel@monitoring-plugins.org";
54#endif 54#endif
55 55
56#include <sys/time.h> 56#include <sys/time.h>
57#if defined(SIOCGIFADDR)
58#include <sys/ioctl.h>
59#endif /* SIOCGIFADDR */
57#include <errno.h> 60#include <errno.h>
58#include <signal.h> 61#include <signal.h>
59#include <ctype.h> 62#include <ctype.h>