packages/net/dsl-qos-queue/patches/001-cross_compile.patch
nbd f974fdab0b dsl-qos-queue: fix compile errors
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16181 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-29 12:01:14 +00:00

41 lines
1.1 KiB
Diff

--- a/dsl_qos_queue.c
+++ b/dsl_qos_queue.c
@@ -552,12 +552,12 @@
syslog(LOG_INFO, "setup()");
- rval=system("modprobe ip_queue");
+/* rval=system("modprobe ip_queue");
if (WEXITSTATUS(rval)!=0)
{
printf("Unable to install ip_queue module.\n");
exit(1);
- }
+ }*/
for (i=0;i<MAX_QDEV;i++) if (_qdev[i]) hook_iptables(_qdev[i]);
--- a/makefile
+++ b/makefile
@@ -4,14 +4,14 @@
all: dsl_qos_queue dsl_qos_train
clean:
rm *.o
-dsl_qos_queue: dsl_qos_queue.o daemon.o $(LIBIPQ)
- $(CC) -o dsl_qos_queue dsl_qos_queue.o daemon.o -lipq
+dsl_qos_queue: dsl_qos_queue.o daemon.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o dsl_qos_queue dsl_qos_queue.o daemon.o $(LIBIPQ)
dsl_qos_queue.o: dsl_qos_queue.c
- $(CC) -c dsl_qos_queue.c
+ $(CC) $(CFLAGS) -c dsl_qos_queue.c
daemon.o: daemon.c
- $(CC) -c daemon.c
+ $(CC) $(CFLAGS) -c daemon.c
dsl_qos_train: dsl_qos_train.o
- $(CC) -o dsl_qos_train dsl_qos_train.o
+ $(CC) $(CFLAGS) -o dsl_qos_train dsl_qos_train.o
dsl_qos_train.o: dsl_qos_train.c
- $(CC) -c dsl_qos_train.c
+ $(CC) $(CFLAGS) -c dsl_qos_train.c