summaryrefslogtreecommitdiffstats
path: root/package/minicom/0001-musl-libc-compile-fix.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-01-23 15:41:58 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-01-27 21:54:07 +0100
commite01ec28d2757463e302e7d5b9e825302a62de3f8 (patch)
treeb5395842cea3cff4b1a43a010bc2d9337cd4006f /package/minicom/0001-musl-libc-compile-fix.patch
parent712e69a87208e73111206ab48f55cac9f63622a3 (diff)
downloadbuildroot-e01ec28d2757463e302e7d5b9e825302a62de3f8.tar.gz
buildroot-e01ec28d2757463e302e7d5b9e825302a62de3f8.zip
package/minicom: fix musl build
Add two upstream patches to fix the build of minicom with the musl C library. Fixes: http://autobuild.buildroot.net/results/ea7/ea72a5aee30a89251c06e6a916499e39128437c0/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: use upstream patches instead of OpenEmbedded patch.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/minicom/0001-musl-libc-compile-fix.patch')
-rw-r--r--package/minicom/0001-musl-libc-compile-fix.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/minicom/0001-musl-libc-compile-fix.patch b/package/minicom/0001-musl-libc-compile-fix.patch
new file mode 100644
index 0000000000..94c0da06a5
--- /dev/null
+++ b/package/minicom/0001-musl-libc-compile-fix.patch
@@ -0,0 +1,28 @@
+# HG changeset patch
+# User Adam Lackorzynski <adam@os.inf.tu-dresden.de>
+# Date 1432407431 -7200
+# Sat May 23 20:57:11 2015 +0200
+# Node ID 8bf81e6a8e60e37c2dec9577a1be6357b8d56165
+# Parent 8c784c80c17aa7a346d982db23bca5df67302cda
+musl-libc compile fix
+
+By Felix Janda <felix.janda@posteo.de>:
+VC_MUSIC is enabled by default on linux and in dial.c the
+necessary header are only included for glibc. (The wrong conditional
+include has likely been introduced by the 2003-03-30 GNU/Hurd patch.)
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+[Taken from upstream Mercurial commit 8bf81e6a8e60]
+
+diff -r 8c784c80c17a -r 8bf81e6a8e60 src/dial.c
+--- a/src/dial.c Sat May 23 20:56:29 2015 +0200
++++ b/src/dial.c Sat May 23 20:57:11 2015 +0200
+@@ -39,7 +39,7 @@
+ #include "intl.h"
+
+ #ifdef VC_MUSIC
+-# if defined(__GLIBC__)
++# if defined(__linux__) || defined(__GLIBC__)
+ # include <sys/ioctl.h>
+ # include <sys/kd.h>
+ # include <sys/time.h>
OpenPOWER on IntegriCloud