diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-10 11:36:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-07-10 11:36:49 +0000 |
commit | 2cedab3098319541f67d94614ef0ad0f0cc0520c (patch) | |
tree | 37587a9331a1fa6fca35e5acd6268b50275a2c6e /package/network/utils/ebtables/Makefile | |
parent | 7146d74f88949af8903d665b5b7cc0f736e4235a (diff) | |
download | master-187ad058-2cedab3098319541f67d94614ef0ad0f0cc0520c.tar.gz master-187ad058-2cedab3098319541f67d94614ef0ad0f0cc0520c.tar.bz2 master-187ad058-2cedab3098319541f67d94614ef0ad0f0cc0520c.zip |
ebtables: fix miscompilation on 64bit targets
The musl build "fix" introduced in r45108 removed all netinet/ether.h
includes, which made the prototypes of ether_aton and ether_ntoa
unavailable. As a result, the compiler assumed they return int instead
of a pointer. This currupted the pointer on 64bit targets, causing ebtables
to segfault in commands containing MAC addresses.
Since r46161 made it possible to include both the kernel and the libc
if_ether.h as long as the libc version is included first, this patch
changes the fix to remove the linux/if_ether.h from the ebtables source
(so the fixed version from the kernel is used) and ensures netinet/ether.h
is included early.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46292 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/ebtables/Makefile')
-rw-r--r-- | package/network/utils/ebtables/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/utils/ebtables/Makefile b/package/network/utils/ebtables/Makefile index 4f6d7f5323..30bf426d77 100644 --- a/package/network/utils/ebtables/Makefile +++ b/package/network/utils/ebtables/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ebtables PKG_VERSION:=2.0.10-4 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/ebtables |