summaryrefslogtreecommitdiffstats
path: root/main/libcec/musl-fix.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-01-13 19:45:01 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-01-13 19:45:01 +0000
commitdbf4cb339e60684036842e52fc715762e89602d5 (patch)
tree4d0b2549fab94256d4d5262029582ec5d86295a3 /main/libcec/musl-fix.patch
parenta59ee23fc6759eed6d4aed348fb010e0f9ddc31a (diff)
downloadaports-dbf4cb339e60684036842e52fc715762e89602d5.tar.bz2
aports-dbf4cb339e60684036842e52fc715762e89602d5.tar.xz
main/libcec: fix musl build
Diffstat (limited to 'main/libcec/musl-fix.patch')
-rw-r--r--main/libcec/musl-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/libcec/musl-fix.patch b/main/libcec/musl-fix.patch
new file mode 100644
index 000000000..c77e0e5d9
--- /dev/null
+++ b/main/libcec/musl-fix.patch
@@ -0,0 +1,22 @@
+--- libcec-libcec-2.1.3.orig/src/lib/platform/posix/serialport.cpp
++++ libcec-libcec-2.1.3/src/lib/platform/posix/serialport.cpp
+@@ -37,7 +37,6 @@
+ #include "lib/platform/util/baudrate.h"
+ #include "lib/platform/posix/os-socket.h"
+
+-#if defined(__APPLE__) || defined(__FreeBSD__)
+ #ifndef XCASE
+ #define XCASE 0
+ #endif
+@@ -47,10 +46,9 @@
+ #ifndef IUCLC
+ #define IUCLC 0
+ #endif
+-#else
++
+ #ifdef HAVE_LOCKDEV
+ #include <lockdev.h>
+-#endif
+ #endif
+
+ using namespace std;