mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 00:12:58 +02:00
libnl: Fix compilation with new glibc.
This commit is contained in:
@@ -73,6 +73,7 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/libnl-1.1-ULONG_MAX.patch
|
||||
cd $(DIR_APP) && ln -s /usr/src/linux/include/linux/if_vlan.h \
|
||||
include/linux/if_vlan.h
|
||||
cd $(DIR_APP) && ln -s /usr/src/linux/include/linux/netfilter/nf_conntrack_common.h \
|
||||
|
||||
11
src/patches/libnl-1.1-ULONG_MAX.patch
Normal file
11
src/patches/libnl-1.1-ULONG_MAX.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- libnl-1.1/include/netlink-local.h.orig 2008-06-08 19:09:20.000000000 +0200
|
||||
+++ libnl-1.1/include/netlink-local.h 2008-06-08 19:09:33.000000000 +0200
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
+#include <limits.h>
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
||||
Reference in New Issue
Block a user