summaryrefslogtreecommitdiffstats
path: root/package/liblo/0001-server-use-correct-poll.h-header.patch
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2018-04-08 11:37:06 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-09 11:23:11 +0200
commitb07245e5b748f73d17b2d612148f792f5d248106 (patch)
tree0723538b74e787915db3fb37b2f6e3c6c5cc93f2 /package/liblo/0001-server-use-correct-poll.h-header.patch
parent6d1060d2610cc07f9f2cac61f9ec2276afc102d5 (diff)
downloadbuildroot-b07245e5b748f73d17b2d612148f792f5d248106.tar.gz
buildroot-b07245e5b748f73d17b2d612148f792f5d248106.zip
package/liblo: fix build with musl
Commit 2759ba03979 (liblo: disable werror to fix build issues) tried to fix the issue by passing --disable-werror, but this is not a recognised option. Instead, just fix the code for good. Fixes: http://autobuild.buildroot.org/results/000a46954d0c6d3dbc4b4634a0d3a3c955fac679 http://autobuild.buildroot.org/results/58cb834bbd69bafc5cb0f23c236919c609648c05 http://autobuild.buildroot.org/results/9de1c2007818082e88d77572abf8ff8a72e01930 ... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Alex Baldwin <alexbaldwinmusic@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/liblo/0001-server-use-correct-poll.h-header.patch')
-rw-r--r--package/liblo/0001-server-use-correct-poll.h-header.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/liblo/0001-server-use-correct-poll.h-header.patch b/package/liblo/0001-server-use-correct-poll.h-header.patch
new file mode 100644
index 0000000000..04c0445534
--- /dev/null
+++ b/package/liblo/0001-server-use-correct-poll.h-header.patch
@@ -0,0 +1,32 @@
+From d59f2e6f42a9e4f8a9184d7ed75546f47dc50123 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Sun, 8 Apr 2018 11:09:02 +0200
+Subject: [PATCH] server: use correct poll.h header
+
+Fixes build with the musl C library:
+ http://autobuild.buildroot.net/results/000a46954d0c6d3dbc4b4634a0d3a3c955fac679
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+Upstream status:
+ PR sent: https://github.com/radarsat1/liblo/pull/66
+---
+ src/server.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/server.c b/src/server.c
+index 01fa08f..11c62d2 100644
+--- a/src/server.c
++++ b/src/server.c
+@@ -51,7 +51,7 @@
+ #include <netdb.h>
+ #include <sys/socket.h>
+ #ifdef HAVE_POLL
+-#include <sys/poll.h>
++#include <poll.h>
+ #endif
+ #include <sys/un.h>
+ #include <arpa/inet.h>
+--
+2.14.1
+
OpenPOWER on IntegriCloud