mirror of
https://github.com/schnitzeltony/meta-musicians.git
synced 2026-09-12 12:49:31 +02:00
qmidictl: Fix build for musl
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 9e7abff3cfd290d8e5fb42854704fb24102c4dd8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Tue, 2 Apr 2019 21:59:13 +0200
|
||||
Subject: [PATCH] Fix build on linux with musl
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Build fails for unknown FD_ZERO which is defined in [1]. Somehow musl is again
|
||||
more picky on this so add #include <sys/select.h>
|
||||
|
||||
Upstream-Status: Applied [2]
|
||||
|
||||
[1] http://man7.org/linux/man-pages/man2/select.2.html
|
||||
[2] https://github.com/rncbc/qmidictl/commit/9e7abff3cfd290d8e5fb42854704fb24102c4dd8
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
src/qmidictlUdpDevice.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/qmidictlUdpDevice.cpp b/src/qmidictlUdpDevice.cpp
|
||||
index 083c5d5..d4bf955 100644
|
||||
--- a/src/qmidictlUdpDevice.cpp
|
||||
+++ b/src/qmidictlUdpDevice.cpp
|
||||
@@ -34,6 +34,7 @@ inline void closesocket(int s) { ::close(s); }
|
||||
static WSADATA g_wsaData;
|
||||
typedef int socklen_t;
|
||||
#else
|
||||
+#include <sys/select.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
inline void closesocket(int s) { ::close(s); }
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -15,6 +15,7 @@ inherit qmake5_base autotools-brokensep gtk-icon-cache qt5-translation
|
||||
SRC_URI = " \
|
||||
${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
|
||||
file://0001-no-Qt4-find-native-qt-build-tools-by-configure-options-auto.patch \
|
||||
file://0002-Fix-build-on-linux-with-musl.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "c91cec2bf72278a390e3bd75ed149959"
|
||||
SRC_URI[sha256sum] = "a42d7a2f3fc8090a4fa0a7696f532048071febac88d5ae5e10a0697cb1831551"
|
||||
|
||||
Reference in New Issue
Block a user