1 diff -urN iproute2-2.6.7.org/include/rt_names.h iproute2-2.6.7/include/rt_names.h
2 --- iproute2-2.6.7.org/include/rt_names.h 2004-06-16 21:07:09.457517808 +0200
3 +++ iproute2-2.6.7/include/rt_names.h 2004-06-16 21:12:26.790275896 +0200
8 +#include <asm/byteorder.h>
10 const char* rtnl_rtprot_n2a(int id, char *buf, int len);
11 const char* rtnl_rtscope_n2a(int id, char *buf, int len);
12 const char* rtnl_rttable_n2a(int id, char *buf, int len);
13 diff -urN iproute2-2.6.7.org/lib/rt_names.c iproute2-2.6.7/lib/rt_names.c
14 --- iproute2-2.6.7.org/lib/rt_names.c 2004-06-16 21:07:09.400526472 +0200
15 +++ iproute2-2.6.7/lib/rt_names.c 2004-06-16 21:10:48.897157912 +0200
20 +#include <asm/byteorder.h>
22 static void rtnl_tab_initialize(char *file, char **tab, int size)
24 diff -urN iproute2-2.6.7.org/Makefile iproute2-2.6.7/Makefile
25 --- iproute2-2.6.7.org/Makefile 2004-06-16 21:07:09.445519632 +0200
26 +++ iproute2-2.6.7/Makefile 2004-06-16 21:10:12.256728104 +0200
29 DOCDIR=/usr/doc/iproute2
31 -KERNEL_INCLUDE=/usr/include
32 -LIBC_INCLUDE=/usr/include
34 DEFINES= -DRESOLVE_HOSTNAMES
36 #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
41 #options if you compile with libc5, and without a bind>=4.9.4 libresolv
44 ADDLIB+=ipx_ntop.o ipx_pton.o
46 -ifeq ($(LIBC_INCLUDE)/socketbits.h,$(wildcard $(LIBC_INCLUDE)/socketbits.h))
47 - ifeq ($(LIBC_INCLUDE)/net/if_packet.h,$(wildcard $(LIBC_INCLUDE)/net/if_packet.h))
48 - GLIBCFIX=-I../include-glibc -include ../include-glibc/glibc-bugs.h
51 -ifeq ($(LIBC_INCLUDE)/bits/socket.h,$(wildcard $(LIBC_INCLUDE)/bits/socket.h))
52 - GLIBCFIX=-I../include-glibc -I/usr/include/db3 -include ../include-glibc/glibc-bugs.h
57 -CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g
58 -CFLAGS = $(CCOPTS) $(GLIBCFIX) -I$(KERNEL_INCLUDE) -I../include $(DEFINES)
59 +CCOPTS = -D_GNU_SOURCE $(OPT) -Wstrict-prototypes -Wall -g
60 +CFLAGS = $(CCOPTS) -I../include $(DEFINES)
62 LDLIBS += -L../lib -lnetlink -lutil