mirror of
http://git.openwrt.org/packages.git
synced 2025-01-09 04:19:54 +08:00
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 <mika.laitio@nokia.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@33009 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f0389891c0
commit
c4ad01d56c
11
net/knock/patches/010_eglibc_define_PATH_MAX.patch
Normal file
11
net/knock/patches/010_eglibc_define_PATH_MAX.patch
Normal file
@ -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";
|
Loading…
Reference in New Issue
Block a user