* updated wget (1.21 -> 1.21.2)
[t2.git] / package / network / iptables / compile.patch.dietlibc
blob0aa0b0ea05c9ccebd9759d71372cefdbf8f15caf
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3
4 # T2 SDE: package/.../iptables/compile.patch.dietlibc
5 # Copyright (C) 2004 - 2016 The T2 SDE Project
6
7 # More information can be found in the files COPYING and README.
8
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -ruN iptables-1.3.2.orig/include/libiptc/ipt_kernel_headers.h iptables-1.3.2/include/libiptc/ipt_kernel_headers.h
18 --- iptables-1.3.2.orig/include/libiptc/ipt_kernel_headers.h    2004-10-10 11:56:23.000000000 +0200
19 +++ iptables-1.3.2/include/libiptc/ipt_kernel_headers.h 2005-07-19 12:17:03.000000000 +0200
20 @@ -5,7 +5,7 @@
22  #include <limits.h>
24 -#if defined(__GLIBC__) && __GLIBC__ == 2
25 +#if (defined(__GLIBC__) && __GLIBC__ == 2) || defined(__dietlibc__) 
26  #include <netinet/ip.h>
27  #include <netinet/in.h>
28  #include <netinet/ip_icmp.h>
29 diff -ruN iptables-1.3.2.orig/iptables-restore.c iptables-1.3.2/iptables-restore.c
30 --- iptables-1.3.2.orig/iptables-restore.c      2005-06-24 18:34:19.000000000 +0200
31 +++ iptables-1.3.2/iptables-restore.c   2005-07-19 12:17:03.000000000 +0200
32 @@ -8,7 +8,7 @@
33   */
35  #include <getopt.h>
36 -#include <sys/errno.h>
37 +#include <errno.h>
38  #include <string.h>
39  #include <stdio.h>
40  #include <stdlib.h>
41 diff -ruN iptables-1.3.2.orig/iptables-save.c iptables-1.3.2/iptables-save.c
42 --- iptables-1.3.2.orig/iptables-save.c 2005-04-15 11:30:16.000000000 +0200
43 +++ iptables-1.3.2/iptables-save.c      2005-07-19 12:17:03.000000000 +0200
44 @@ -6,7 +6,7 @@
45   *
46   */
47  #include <getopt.h>
48 -#include <sys/errno.h>
49 +#include <errno.h>
50  #include <stdio.h>
51  #include <fcntl.h>
52  #include <stdlib.h>