libmpdclient: Add patch for musl libc compatibility (from upstream repo)
authorTed Hess <redacted>
Sat, 25 Oct 2014 14:56:24 +0000 (10:56 -0400)
committerTed Hess <redacted>
Sat, 25 Oct 2014 14:56:24 +0000 (10:56 -0400)
Signed-off-by: Ted Hess <redacted>
libs/libmpdclient/Makefile
libs/libmpdclient/patches/001-WIP_musl_compatibility.patch [new file with mode: 0644]

index 0a23422959bc6133c9a1005ac3b5af7c02c306ff..d81095fb3de7d809f901f2ee0d2d874efef23d4f 100644 (file)
@@ -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
new file mode 100644 (file)
index 0000000..02ea652
--- /dev/null
@@ -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>
git clone https://git.99rst.org/PROJECT