add gcc 4.0.0
[openwrt.git] / package / wireless-tools / patches / debian-2.patch
1 --- wireless-tools-27.orig/iwlib.c
2 +++ wireless-tools-27/iwlib.c
3 @@ -622,6 +622,7 @@
4 {
5 struct iwreq wrq;
6
7 + memset((char *) &wrq, 0, sizeof(struct iwreq));
8 memset((char *) info, 0, sizeof(struct wireless_config));
9
10 /* Get wireless name */
11 --- wireless-tools-27.orig/Makefile
12 +++ wireless-tools-27/Makefile
13 @@ -64,8 +64,8 @@
14 # Install directories
15 INSTALL_DIR= $(PREFIX)/sbin/
16 INSTALL_LIB= $(PREFIX)/lib/
17 -INSTALL_INC= $(PREFIX)/include/
18 -INSTALL_MAN= $(PREFIX)/man/
19 +INSTALL_INC= $(PREFIX)/usr/include/
20 +INSTALL_MAN= $(PREFIX)/usr/share/man/
21
22 # Various commands
23 RM = rm -f
24 @@ -81,9 +81,9 @@
25 endif
26
27 # Other flags
28 -CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
29 +#CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
30 -Wpointer-arith -Wcast-qual -Winline -I.
31 -#CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
32 +CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
33 DEPFLAGS=-MMD
34 XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG)
35 PICFLAG=-fPIC
This page took 0.072408 seconds and 5 git commands to generate.