[package] unbreak iptables-snmp compilation (#5549)
[openwrt/svn-archive/archive.git] / net / iptables-snmp / patches / 001-use_libiptc.patch
1 diff -urN iptables-snmp-0.1/Makefile.in iptables-snmp-0.1.new/Makefile.in
2 --- iptables-snmp-0.1/Makefile.in 2005-11-02 13:00:10.000000000 +0100
3 +++ iptables-snmp-0.1.new/Makefile.in 2009-08-02 01:13:40.000000000 +0200
4 @@ -67,7 +67,7 @@
5
6 all: iptables-snmp.so
7
8 -iptables-snmp.so: $(OBJS) libiptc.a Makefile
9 +iptables-snmp.so: $(OBJS) Makefile
10 $(CC) $(CFLAGS) $(OTHER) $(DFLAGS) -shared -o $@ $(OBJS) $(LDFLAGS)
11
12 libiptc.a: $(LIBIPTC_OBJS) Makefile
13 diff -urN iptables-snmp-0.1/iptables-snmp.c iptables-snmp-0.1.new/iptables-snmp.c
14 --- iptables-snmp-0.1/iptables-snmp.c 2005-11-02 12:10:54.000000000 +0100
15 +++ iptables-snmp-0.1.new/iptables-snmp.c 2009-08-02 01:13:30.000000000 +0200
16 @@ -37,6 +37,9 @@
17
18 #include "libiptc/libiptc.h"
19
20 +/* For backward compatibility */
21 +typedef struct iptc_handle *iptc_handle_t;
22 +
23 static oid agent_version_oid[] = {
24 BASE_OID, 1, 0, AGENT_VERSION_INDEX
25 };