diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-08-30 19:03:59 -0700 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-07 10:59:21 +0200 |
| commit | 2756ef68c92db20c093ef44460ff0ff7047006ec (patch) | |
| tree | 6eee4523f90fcd2a52c0a7adf74c6693b0bd547c | |
| parent | a966c86b5c95640f37d2e0861ec971fa2768fa11 (diff) | |
| download | meta-openembedded-2756ef68c92db20c093ef44460ff0ff7047006ec.tar.gz | |
corosync: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/corosync/corosync/0001-Include-fcntl.h-for-F_-and-O_-defines.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/corosync/corosync_2.4.2.bb | 4 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/corosync/corosync/0001-Include-fcntl.h-for-F_-and-O_-defines.patch b/meta-oe/recipes-extended/corosync/corosync/0001-Include-fcntl.h-for-F_-and-O_-defines.patch new file mode 100644 index 0000000000..fe4b0793fe --- /dev/null +++ b/meta-oe/recipes-extended/corosync/corosync/0001-Include-fcntl.h-for-F_-and-O_-defines.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 85ea47fedbc96ed9180e08b0d371d9966e3a88da Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 30 Aug 2017 17:28:55 -0700 | ||
| 4 | Subject: [PATCH] Include fcntl.h for F_* and O_* defines | ||
| 5 | |||
| 6 | Fixes errors like | ||
| 7 | utils.c:95:22: error: use of undeclared identifier 'O_WRONLY' | ||
| 8 | |||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | qdevices/utils.c | 1 + | ||
| 12 | 1 file changed, 1 insertion(+) | ||
| 13 | |||
| 14 | diff --git a/qdevices/utils.c b/qdevices/utils.c | ||
| 15 | index 41850b8c..87090853 100644 | ||
| 16 | --- a/qdevices/utils.c | ||
| 17 | +++ b/qdevices/utils.c | ||
| 18 | @@ -39,6 +39,7 @@ | ||
| 19 | |||
| 20 | #include <err.h> | ||
| 21 | #include <errno.h> | ||
| 22 | +#include <fcntl.h> | ||
| 23 | #include <inttypes.h> | ||
| 24 | #include <libgen.h> | ||
| 25 | #include <stdio.h> | ||
| 26 | -- | ||
| 27 | 2.14.1 | ||
| 28 | |||
diff --git a/meta-oe/recipes-extended/corosync/corosync_2.4.2.bb b/meta-oe/recipes-extended/corosync/corosync_2.4.2.bb index 7d5a87e4cc..33e74e2ff8 100644 --- a/meta-oe/recipes-extended/corosync/corosync_2.4.2.bb +++ b/meta-oe/recipes-extended/corosync/corosync_2.4.2.bb | |||
| @@ -7,7 +7,9 @@ SECTION = "base" | |||
| 7 | 7 | ||
| 8 | inherit autotools pkgconfig systemd useradd | 8 | inherit autotools pkgconfig systemd useradd |
| 9 | 9 | ||
| 10 | SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz" | 10 | SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz \ |
| 11 | file://0001-Include-fcntl.h-for-F_-and-O_-defines.patch \ | ||
| 12 | " | ||
| 11 | SRC_URI[md5sum] = "547fa78704da53aa35912be58d31035f" | 13 | SRC_URI[md5sum] = "547fa78704da53aa35912be58d31035f" |
| 12 | SRC_URI[sha256sum] = "f26e3011309fe4bcce94b1dc20ea8c462f19483a73f3ca62f13b925d011a4ba9" | 14 | SRC_URI[sha256sum] = "f26e3011309fe4bcce94b1dc20ea8c462f19483a73f3ca62f13b925d011a4ba9" |
| 13 | 15 | ||
