summaryrefslogtreecommitdiffstats
path: root/package/iwd/0001-monitor-pcap.c-add-missing-sys-stat.h-include.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2018-12-02 08:15:26 +0100
committerPeter Korsgaard <peter@korsgaard.com>2018-12-02 08:16:10 +0100
commit13c43455a05b036002e79808ca1c8e0d91d7871b (patch)
tree147ddbfc5486085018bb527de1a43961fc8ee1ca /package/iwd/0001-monitor-pcap.c-add-missing-sys-stat.h-include.patch
parent2e08c7398a47b414c288ea516514adac3edf00fb (diff)
parent0393f5d34433e34e49ff7ce0fb998735453ed4fc (diff)
downloadbuildroot-13c43455a05b036002e79808ca1c8e0d91d7871b.tar.gz
buildroot-13c43455a05b036002e79808ca1c8e0d91d7871b.zip
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/iwd/0001-monitor-pcap.c-add-missing-sys-stat.h-include.patch')
-rw-r--r--package/iwd/0001-monitor-pcap.c-add-missing-sys-stat.h-include.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/iwd/0001-monitor-pcap.c-add-missing-sys-stat.h-include.patch b/package/iwd/0001-monitor-pcap.c-add-missing-sys-stat.h-include.patch
new file mode 100644
index 0000000000..83be65dcd1
--- /dev/null
+++ b/package/iwd/0001-monitor-pcap.c-add-missing-sys-stat.h-include.patch
@@ -0,0 +1,46 @@
+From a879fc32d58625bd9361219c1285ab6e5f012467 Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Fri, 2 Nov 2018 14:29:53 +0100
+Subject: [PATCH] monitor/pcap.c: add missing sys/stat.h include
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes:
+
+ CC monitor/pcap.o
+ monitor/pcap.c: In function ‘pcap_create’:
+ monitor/pcap.c:121:6: error: ‘S_IRUSR’ undeclared (first use in this function)
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+ ^
+ monitor/pcap.c:121:6: note: each undeclared identifier is reported only once for each function it appears in
+ monitor/pcap.c:121:16: error: ‘S_IWUSR’ undeclared (first use in this function)
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+ ^
+ monitor/pcap.c:121:26: error: ‘S_IRGRP’ undeclared (first use in this function)
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+ ^
+ monitor/pcap.c:121:36: error: ‘S_IROTH’ undeclared (first use in this function)
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+ ^
+
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+ monitor/pcap.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/monitor/pcap.c b/monitor/pcap.c
+index 54ad9f5..785aefa 100644
+--- a/monitor/pcap.c
++++ b/monitor/pcap.c
+@@ -29,6 +29,7 @@
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <stdlib.h>
++#include <sys/stat.h>
+ #include <sys/uio.h>
+ #include <sys/types.h>
+ #include <ell/ell.h>
+--
+2.19.1
+
OpenPOWER on IntegriCloud