diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-09-02 03:21:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-12 22:47:14 +0100 |
commit | 77789bdd0f55714590d95589558edc8151f9860d (patch) | |
tree | 6991f6d23866b8a1c7ec950705bb964ec4f5df65 /meta/recipes-extended/minicom | |
parent | 34682843d0e2b645d33900ee425428a01e3f2ddc (diff) | |
download | openembedded-core-77789bdd0f55714590d95589558edc8151f9860d.tar.gz openembedded-core-77789bdd0f55714590d95589558edc8151f9860d.tar.bz2 openembedded-core-77789bdd0f55714590d95589558edc8151f9860d.zip |
minicom: Fix build with musl
musl exposes the inherent assumption about certain header files from
glibc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-extended/minicom')
-rw-r--r-- | meta/recipes-extended/minicom/minicom/0001-Fix-build-issus-surfaced-due-to-musl.patch | 47 | ||||
-rw-r--r-- | meta/recipes-extended/minicom/minicom_2.7.bb | 1 |
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-extended/minicom/minicom/0001-Fix-build-issus-surfaced-due-to-musl.patch b/meta/recipes-extended/minicom/minicom/0001-Fix-build-issus-surfaced-due-to-musl.patch new file mode 100644 index 0000000000..fec67fdd3f --- /dev/null +++ b/meta/recipes-extended/minicom/minicom/0001-Fix-build-issus-surfaced-due-to-musl.patch @@ -0,0 +1,47 @@ +From d62a5862e26ed3fc58d789efe9c40ca6c911d36b Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Mon, 31 Aug 2015 22:35:31 +0000 +Subject: [PATCH] Fix build issus surfaced due to musl + +src/getsdir.h:28:14: error: 'MAXNAMLEN' undeclared here (not in a function) + char fname[MAXNAMLEN + 1]; /* filename + terminating null */ + +src/dial.c:352:22: error: 'KIOCSOUND' undeclared (first use in this function) +| ioctl(consolefd, KIOCSOUND, k); + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- +Upstream-Status: Pending + + src/dial.c | 2 +- + src/getsdir.c | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/dial.c b/src/dial.c +index a90c1d2..bf02574 100644 +--- a/src/dial.c ++++ b/src/dial.c +@@ -39,7 +39,7 @@ + #include "intl.h" + + #ifdef VC_MUSIC +-# if defined(__GLIBC__) ++# if defined(__GLIBC__) || defined(__linux__) + # include <sys/ioctl.h> + # include <sys/kd.h> + # include <sys/time.h> +diff --git a/src/getsdir.c b/src/getsdir.c +index 2195b27..b61a361 100644 +--- a/src/getsdir.c ++++ b/src/getsdir.c +@@ -30,6 +30,7 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/param.h> + #include <errno.h> + + #include "getsdir.h" +-- +2.5.1 + diff --git a/meta/recipes-extended/minicom/minicom_2.7.bb b/meta/recipes-extended/minicom/minicom_2.7.bb index c002bc82d9..1575cfbc7e 100644 --- a/meta/recipes-extended/minicom/minicom_2.7.bb +++ b/meta/recipes-extended/minicom/minicom_2.7.bb @@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=420477abc567404debca0a2a1cb6b645 \ SRC_URI = "https://alioth.debian.org/frs/download.php/latestfile/3/${BP}.tar.gz \ file://allow.to.disable.lockdev.patch \ file://0001-fix-minicom-h-v-return-value-is-not-0.patch \ + file://0001-Fix-build-issus-surfaced-due-to-musl.patch \ " SRC_URI[md5sum] = "7044ca3e291268c33294f171d426dc2d" |