summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEneas U de Queiroz <cote2004-github@yahoo.com>2018-08-01 12:49:35 +0000
committerJohn Crispin <john@phrozen.org>2018-09-10 09:15:26 +0200
commit0317fc3658eb55596c72647f2e6c68bf06bf36ff (patch)
tree1c2c8fa1a3fb69d622977f976f6a721e47638291
parent6a2ee91267a09fd77dee70cf3b0ba8b9b905476f (diff)
downloadmtk-20170518-0317fc3658eb55596c72647f2e6c68bf06bf36ff.zip
mtk-20170518-0317fc3658eb55596c72647f2e6c68bf06bf36ff.tar.gz
mtk-20170518-0317fc3658eb55596c72647f2e6c68bf06bf36ff.tar.bz2
libpcap: patch to add limits.h to pcap-usb-linux.c
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. This is an upstream-applied patch that fixes 'PATH_MAX' and 'NAME_MAX' undeclared when compiling on musl with CONFIG_PCAP_HAS_USB. [aafa351] pcap-usb-linux.c: add missing limits.h for musl systems. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
-rw-r--r--package/libs/libpcap/patches/205-pcap-usb-linux.c-add-missing-limits.h.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/libs/libpcap/patches/205-pcap-usb-linux.c-add-missing-limits.h.patch b/package/libs/libpcap/patches/205-pcap-usb-linux.c-add-missing-limits.h.patch
new file mode 100644
index 0000000..cae8012
--- /dev/null
+++ b/package/libs/libpcap/patches/205-pcap-usb-linux.c-add-missing-limits.h.patch
@@ -0,0 +1,22 @@
+From aafa3512b7b742f5e66a5543e41974cc5e7eebfa Mon Sep 17 00:00:00 2001
+From: maxice8 <thinkabit.ukim@gmail.com>
+Date: Sun, 22 Jul 2018 18:54:17 -0300
+Subject: [PATCH] pcap-usb-linux.c: add missing limits.h for musl systems.
+
+fix compilation on musl libc systems like Void Linux and Alpine.
+---
+ pcap-usb-linux.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c
+index 6f8adf65e..b92c05ea1 100644
+--- a/pcap-usb-linux.c
++++ b/pcap-usb-linux.c
+@@ -50,6 +50,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <fcntl.h>
++#include <limits.h>
+ #include <string.h>
+ #include <dirent.h>
+ #include <byteswap.h>