Fix knock build with the openwrt eglibc toolchain
by including the limits.h from knockd.c.
This will fix the error caused by undefined
PATH_MAX variable.

Signed-off-by: Mika Laitio <[email protected]>
---
 net/knock/patches/010_eglibc_define_PATH_MAX.patch |   11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 net/knock/patches/010_eglibc_define_PATH_MAX.patch

diff --git a/net/knock/patches/010_eglibc_define_PATH_MAX.patch 
b/net/knock/patches/010_eglibc_define_PATH_MAX.patch
new file mode 100644
index 0000000..98d66ff
--- /dev/null
+++ b/net/knock/patches/010_eglibc_define_PATH_MAX.patch
@@ -0,0 +1,11 @@
+diff -Naur knock-0.5/src/knockd.c knock-0.5-new/src/knockd.c
+--- knock-0.5/src/knockd.c     2005-06-27 08:11:34.000000000 +0300
++++ knock-0.5-new/src/knockd.c 2012-07-31 22:49:13.670323836 +0300
+@@ -46,6 +46,7 @@
+ #include <syslog.h>
+ #include <pcap.h>
+ #include <errno.h>
++#include <limits.h> /* PATH_MAX in eglibc env */
+ #include "list.h"
+
+ static char version[] = "0.5";
-- 
1.7.10
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to