From e76f394fdc34ecd734f976dd7b6660f6ae32d53e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 16 Jun 2015 15:04:39 +0200 Subject: [PATCH] etherwake: fix musl compatibility Always include net/ethernet.h instead linux specific headers, fixes compilation with musl libc. Signed-off-by: Jo-Philipp Wich --- net/etherwake/Makefile | 4 ++-- net/etherwake/patches/120-musl-compat.patch | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 net/etherwake/patches/120-musl-compat.patch diff --git a/net/etherwake/Makefile b/net/etherwake/Makefile index 7343adc0d..4d05e3dab 100644 --- a/net/etherwake/Makefile +++ b/net/etherwake/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 OpenWrt.org +# Copyright (C) 2007-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=etherwake PKG_VERSION:=1.09 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/etherwake diff --git a/net/etherwake/patches/120-musl-compat.patch b/net/etherwake/patches/120-musl-compat.patch new file mode 100644 index 000000000..a2cdfba9d --- /dev/null +++ b/net/etherwake/patches/120-musl-compat.patch @@ -0,0 +1,17 @@ +--- a/ether-wake.c ++++ b/ether-wake.c +@@ -82,14 +82,8 @@ static char usage_msg[] = + #include + + #include +-#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1 + #include + #include +-#else +-#include +-#include +-#include +-#endif + #include + #include +