summaryrefslogtreecommitdiff
path: root/openwrt/package/libnids
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-08-11 10:35:49 +0000
committerNicolas Thill <nico@openwrt.org>2005-08-11 10:35:49 +0000
commit544736f3e2728ad11c3804003d07856f1aec3b6f (patch)
treec4bc213331dc802fceb4664f47cc9e6ecc7c83d2 /openwrt/package/libnids
parent1852c92c889f5f64b5377cc4b82f4226cd922ff2 (diff)
downloadmtk-20170518-544736f3e2728ad11c3804003d07856f1aec3b6f.zip
mtk-20170518-544736f3e2728ad11c3804003d07856f1aec3b6f.tar.gz
mtk-20170518-544736f3e2728ad11c3804003d07856f1aec3b6f.tar.bz2
Fix building when target arch = i386
SVN-Revision: 1609
Diffstat (limited to 'openwrt/package/libnids')
-rw-r--r--openwrt/package/libnids/patches/no_asm_for_i386.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/openwrt/package/libnids/patches/no_asm_for_i386.patch b/openwrt/package/libnids/patches/no_asm_for_i386.patch
new file mode 100644
index 0000000..ff6fde7
--- /dev/null
+++ b/openwrt/package/libnids/patches/no_asm_for_i386.patch
@@ -0,0 +1,12 @@
+diff -ruN libnids-1.18-orig/src/checksum.c libnids-1.18/src/checksum.c
+--- libnids-1.18-orig/src/checksum.c 2003-09-20 22:40:44.000000000 +0200
++++ libnids-1.18/src/checksum.c 2005-08-09 23:55:00.000000000 +0200
+@@ -4,7 +4,7 @@
+ #include <netinet/tcp.h>
+ #include <netinet/udp.h>
+
+-#if ( __i386__ || __i386 )
++#if 0
+ // all asm procedures are copied from Linux 2.0.36 and 2.2.10 kernels
+
+ /*