]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2-build.patch
- apply db patch
[packages/iproute2.git] / iproute2-build.patch
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
4 @@ -1,6 +1,8 @@
5  #ifndef RT_NAMES_H_
6  #define RT_NAMES_H_ 1
7  
8 +#include <asm/byteorder.h>
9 +
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
16 @@ -16,6 +16,7 @@
17  #include <fcntl.h>
18  #include <string.h>
19  #include <sys/time.h>
20 +#include <asm/byteorder.h>
21  
22  static void rtnl_tab_initialize(char *file, char **tab, int size)
23  {
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
27 @@ -4,13 +4,10 @@
28  CONFDIR=/etc/iproute2
29  DOCDIR=/usr/doc/iproute2
30  
31 -KERNEL_INCLUDE=/usr/include
32 -LIBC_INCLUDE=/usr/include
33 -
34  DEFINES= -DRESOLVE_HOSTNAMES
35  
36  #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
37 -LDLIBS=-lresolv
38 +LDLIBS=
39  ADDLIB=
40  
41  #options if you compile with libc5, and without a bind>=4.9.4 libresolv
42 @@ -23,19 +20,9 @@
43  #options for ipx
44  ADDLIB+=ipx_ntop.o ipx_pton.o
45  
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
49 -  endif
50 -endif
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
53 -endif
54 -
55 -
56  CC = gcc
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)
61  
62  LDLIBS += -L../lib -lnetlink -lutil
63  
This page took 0.026976 seconds and 3 git commands to generate.