commit 2017a0f6e217b8f7e49e0e46e5f97b58eb87dcfb
parent c778155ffffbaeb7c5e72ed765e95e1472d01153
Author: Ted Hess <thess@kitschensync.net>
Date: Sat, 25 Oct 2014 10:56:24 -0400
libmpdclient: Add patch for musl libc compatibility (from upstream repo)
Signed-off-by: Ted Hess <thess@kitschensync.net>
Diffstat:
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/libs/libmpdclient/Makefile b/libs/libmpdclient/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libmpdclient
PKG_VERSION:=2.9
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.musicpd.org/download/libmpdclient/2/
diff --git a/libs/libmpdclient/patches/001-WIP_musl_compatibility.patch b/libs/libmpdclient/patches/001-WIP_musl_compatibility.patch
@@ -0,0 +1,22 @@
+--- a/src/socket.c
++++ b/src/socket.c
+@@ -43,6 +43,7 @@
+ #else
+ # include <netinet/in.h>
+ # include <arpa/inet.h>
++# include <sys/select.h>
+ # include <sys/socket.h>
+ # include <netdb.h>
+ # include <sys/un.h>
+--- a/src/sync.c
++++ b/src/sync.c
+@@ -33,6 +33,9 @@
+ #include <assert.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#ifndef WIN32
++#include <sys/select.h>
++#endif
+ #include <fcntl.h>
+ #include <unistd.h>
+