dsl-qos-queue: fix compile errors
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 May 2009 12:01:14 +0000 (12:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 May 2009 12:01:14 +0000 (12:01 +0000)
SVN-Revision: 16181

net/dsl-qos-queue/Makefile
net/dsl-qos-queue/patches/001-cross_compile.patch
net/dsl-qos-queue/patches/002-include.patch [new file with mode: 0644]

index 67d9392def7fc3a767950f54fb1060b92778ce46..b78e2404e39ba5c8c1b4e25e533b39efc10e687d 100644 (file)
@@ -33,6 +33,7 @@ define Build/Compile
        $(call Build/Compile/Default, \
                CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libipq $(TARGET_CPPFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS)" \
+               LIBIPQ=$(STAGING_DIR)/usr/lib/libipq.a \
                all \
        )
 endef
index b124b27a90d0c0e8c93e2f3aa7c483f5909da42d..43a90947e34649abb832e2bf0fed2377d32c9e67 100644 (file)
@@ -1,6 +1,5 @@
-diff -urN dsl_qos_queue/dsl_qos_queue.c dsl_qos_queue.new/dsl_qos_queue.c
---- dsl_qos_queue/dsl_qos_queue.c      2006-03-28 20:48:18.000000000 +0200
-+++ dsl_qos_queue.new/dsl_qos_queue.c  2006-08-18 22:14:12.000000000 +0200
+--- a/dsl_qos_queue.c
++++ b/dsl_qos_queue.c
 @@ -552,12 +552,12 @@
    
    syslog(LOG_INFO, "setup()");
@@ -16,9 +15,8 @@ diff -urN dsl_qos_queue/dsl_qos_queue.c dsl_qos_queue.new/dsl_qos_queue.c
    
    for (i=0;i<MAX_QDEV;i++) if (_qdev[i]) hook_iptables(_qdev[i]);
  
-diff -urN dsl_qos_queue/makefile dsl_qos_queue.new/makefile
---- dsl_qos_queue/makefile     2004-12-15 03:10:45.000000000 +0100
-+++ dsl_qos_queue.new/makefile 2006-08-18 22:20:48.000000000 +0200
+--- a/makefile
++++ b/makefile
 @@ -4,14 +4,14 @@
  all: dsl_qos_queue dsl_qos_train
  clean:
@@ -26,7 +24,7 @@ diff -urN dsl_qos_queue/makefile dsl_qos_queue.new/makefile
 -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 -lipq
++      $(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
diff --git a/net/dsl-qos-queue/patches/002-include.patch b/net/dsl-qos-queue/patches/002-include.patch
new file mode 100644 (file)
index 0000000..2876c0b
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/dsl_qos_queue.c
++++ b/dsl_qos_queue.c
+@@ -12,8 +12,6 @@
+ // more accurate way to prevent packet queueing in the network
+ // device (in this case, ADSL modem).
+ //
+-#include <linux/netfilter.h>
+-#include <libipq.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <netinet/in.h>
+@@ -25,6 +23,8 @@
+ #include <unistd.h>
+ #include <syslog.h>
+ #include <string.h>
++#include <linux/netfilter.h>
++#include <libipq.h>
+ #include "daemon.h"