From e10abaf165cce3418a3053ef4cefbf8a972040ad Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 26 Jun 2015 16:47:16 +0200 Subject: [PATCH] ntripclient: fix musl comaptibility Add missing `sys/select.h` include to `ntripclient.c` to provide declarations for `struct timeval` and `fd_set` under musl. Signed-off-by: Jo-Philipp Wich --- net/ntripclient/Makefile | 5 +++-- net/ntripclient/patches/100-musl-compat.patch | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 net/ntripclient/patches/100-musl-compat.patch diff --git a/net/ntripclient/Makefile b/net/ntripclient/Makefile index 249f75ba2..2276b31ad 100644 --- a/net/ntripclient/Makefile +++ b/net/ntripclient/Makefile @@ -1,6 +1,6 @@ # # Copyright (C) 2011 segal.ubi.pt -# Copyright (C) 2010-2014 OpenWrt.org +# Copyright (C) 2010-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ntripclient PKG_VERSION:=1.5.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPL-2.0+ PKG_SOURCE:=$(PKG_NAME).zip @@ -36,6 +36,7 @@ endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) unzip $(DL_DIR)/$(PKG_SOURCE) -d $(PKG_BUILD_DIR) + $(call Build/Prepare/Default) endef MAKE_FLAGS += \ diff --git a/net/ntripclient/patches/100-musl-compat.patch b/net/ntripclient/patches/100-musl-compat.patch new file mode 100644 index 000000000..10f690fd9 --- /dev/null +++ b/net/ntripclient/patches/100-musl-compat.patch @@ -0,0 +1,10 @@ +--- a/ntripclient.c ++++ b/ntripclient.c +@@ -44,6 +44,7 @@ + #include + #include + #include ++ #include + #include + #include + #include