]> git.pld-linux.org Git - packages/iproute2.git/blame - iproute2-uClibc.patch
- ipaddress.patch: use the right printf conversion for {r,t}x_bytes
[packages/iproute2.git] / iproute2-uClibc.patch
CommitLineData
987a1f33 1diff -Nur --exclude *~ iproute2/lib/rt_names.c iproute2.new/lib/rt_names.c
2--- iproute2/lib/rt_names.c Sun Apr 16 19:42:52 2000
3+++ iproute2.new/lib/rt_names.c Sun Apr 15 10:22:07 2001
4@@ -16,6 +16,7 @@
5 #include <fcntl.h>
6 #include <string.h>
7 #include <sys/time.h>
8+#include <asm/types.h>
9
10 static void rtnl_tab_initialize(char *file, char **tab, int size)
11 {
12diff -Nur --exclude *~ iproute2/include/rt_names.h iproute2.new/include/rt_names.h
13--- iproute2/include/rt_names.h Sun Apr 16 19:42:50 2000
14+++ iproute2.new/include/rt_names.h Sat Apr 14 17:13:33 2001
15@@ -1,6 +1,7 @@
16 #ifndef RT_NAMES_H_
17 #define RT_NAMES_H_ 1
18
19+#include <asm/types.h>
20 const char* rtnl_rtprot_n2a(int id, char *buf, int len);
21 const char* rtnl_rtscope_n2a(int id, char *buf, int len);
22 const char* rtnl_rttable_n2a(int id, char *buf, int len);
23diff -Nur --exclude *~ iproute2/ip/iptunnel.c iproute2.new/ip/iptunnel.c
24--- iproute2/ip/iptunnel.c Sun Apr 16 19:42:51 2000
25+++ iproute2.new/ip/iptunnel.c Sun Apr 15 13:57:16 2001
26@@ -30,6 +30,7 @@
27 #include <netinet/ip.h>
28 #include <arpa/inet.h>
29 #include <linux/if_tunnel.h>
30+#include <asm/byteorder.h>
31
32 #include "rt_names.h"
33 #include "utils.h"
34diff -Nur --exclude *~ iproute2/lib/utils.c iproute2.new/lib/utils.c
35--- iproute2/lib/utils.c Sun Apr 16 19:42:53 2000
36+++ iproute2.new/lib/utils.c Sat Apr 14 17:28:18 2001
37@@ -25,6 +25,7 @@
38 #include <netdb.h>
39 #include <arpa/inet.h>
40 #include <resolv.h>
41+#include <asm/types.h>
42 #include <linux/pkt_sched.h>
43
44 #include "utils.h"
4c8fdc1f 45diff -Nur --exclude *~ iproute2/lib/inet_ntop.c iproute2.new/lib/inet_ntop.c
46--- iproute2/lib/inet_ntop.c Sun Apr 16 19:42:52 2000
47+++ iproute2.new/lib/inet_ntop.c Sun Apr 15 14:11:19 2001
c35f62f4 48@@ -28,10 +28,10 @@
4c8fdc1f 49 #include <errno.h>
50 #include <stdio.h>
51
52-#include <linux/in6.h>
c35f62f4 53-#ifndef IN6ADDRSZ
4c8fdc1f 54-#define IN6ADDRSZ sizeof(struct in6_addr)
c35f62f4 55-#endif
4c8fdc1f 56+/* #include <linux/in6.h> */
c35f62f4 57+/* #ifndef IN6ADDRSZ */
4c8fdc1f 58+/* #define IN6ADDRSZ sizeof(struct in6_addr) */
c35f62f4 59+/* #endif */
4c8fdc1f 60
61 #ifdef SPRINTF_CHAR
62 # define SPRINTF(x) strlen(sprintf/**/x)
63diff -Nur --exclude *~ iproute2/lib/inet_pton.c iproute2.new/lib/inet_pton.c
64--- iproute2/lib/inet_pton.c Sun Apr 16 19:42:52 2000
65+++ iproute2.new/lib/inet_pton.c Sun Apr 15 14:12:43 2001
66@@ -27,8 +27,8 @@
67 #include <string.h>
68 #include <errno.h>
69
70-#include <linux/in6.h>
71-#define IN6ADDRSZ sizeof(struct in6_addr)
72+/* #include <linux/in6.h> */
73+/* #define IN6ADDRSZ sizeof(struct in6_addr) */
74
75 /*
76 * WARNING: Don't even consider trying to compile this on a system where
This page took 0.031225 seconds and 4 git commands to generate.