aboutsummaryrefslogtreecommitdiffstats
path: root/main/nagios-plugins/fix-compilation-warnings-about-sys-poll.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/nagios-plugins/fix-compilation-warnings-about-sys-poll.patch')
-rw-r--r--main/nagios-plugins/fix-compilation-warnings-about-sys-poll.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/nagios-plugins/fix-compilation-warnings-about-sys-poll.patch b/main/nagios-plugins/fix-compilation-warnings-about-sys-poll.patch
new file mode 100644
index 0000000000..70b4d4680c
--- /dev/null
+++ b/main/nagios-plugins/fix-compilation-warnings-about-sys-poll.patch
@@ -0,0 +1,16 @@
+Subject: Use correct poll.h import
+Author: Simon Frankenberger <simon-alpine@fraho.eu>
+
+This silences some compiler warnings
+
+--- old/plugins/common.h
++++ new/plugins/common.h
+@@ -120,7 +120,7 @@
+ #include <locale.h>
+
+ #ifdef HAVE_SYS_POLL_H
+-# include "sys/poll.h"
++# include <poll.h>
+ #endif
+
+ /*