diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-31 17:51:23 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-03 09:58:38 +0100 |
| commit | 190895d093e376ceddcc323a3d1934555e4d4948 (patch) | |
| tree | 5f56fe8964f198579c88d930614ccd2a85e7ffe8 /meta/recipes-support | |
| parent | bd02a3851c95ebdfcf2d3c672fab15a3be1df08e (diff) | |
| download | poky-190895d093e376ceddcc323a3d1934555e4d4948.tar.gz | |
bdwgc: Add missing include to avoid musl build failures
(From OE-Core rev: 33459ffd0b5f3f303bcf8fb4dce817f6d73162a1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
| -rw-r--r-- | meta/recipes-support/bdwgc/bdwgc/musl_header_fix.patch | 27 | ||||
| -rw-r--r-- | meta/recipes-support/bdwgc/bdwgc_7.6.0.bb | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-support/bdwgc/bdwgc/musl_header_fix.patch b/meta/recipes-support/bdwgc/bdwgc/musl_header_fix.patch new file mode 100644 index 0000000000..4a18496650 --- /dev/null +++ b/meta/recipes-support/bdwgc/bdwgc/musl_header_fix.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Add missing header to avoid: | ||
| 2 | |||
| 3 | | 1472659610.016355: ../git/pthread_stop_world.c: In function 'GC_brief_async_signal_safe_sleep': | ||
| 4 | | 1472659610.0540252: ../git/pthread_stop_world.c:397:22: error: storage size of 'tv' isn't known | ||
| 5 | | 1472659610.0540252: struct timeval tv; | ||
| 6 | | 1472659610.0540252: ^~ | ||
| 7 | | 1472659610.054099: ../git/pthread_stop_world.c:397:22: warning: unused variable 'tv' [-Wunused-variable] | ||
| 8 | | 1472659610.054099: struct timeval tv; | ||
| 9 | | 1472659610.054099: ^~ | ||
| 10 | | 1472659610.054099: Makefile:1530: recipe for target 'pthread_stop_world.lo' failed | ||
| 11 | |||
| 12 | in musl builds. | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Index: git/pthread_stop_world.c | ||
| 17 | =================================================================== | ||
| 18 | --- git.orig/pthread_stop_world.c | ||
| 19 | +++ git/pthread_stop_world.c | ||
| 20 | @@ -45,6 +45,7 @@ | ||
| 21 | #include <semaphore.h> | ||
| 22 | #include <errno.h> | ||
| 23 | #include <unistd.h> | ||
| 24 | +#include <sys/time.h> | ||
| 25 | #include "atomic_ops.h" | ||
| 26 | |||
| 27 | /* It's safe to call original pthread_sigmask() here. */ | ||
diff --git a/meta/recipes-support/bdwgc/bdwgc_7.6.0.bb b/meta/recipes-support/bdwgc/bdwgc_7.6.0.bb index 55ea452068..dcb68f0282 100644 --- a/meta/recipes-support/bdwgc/bdwgc_7.6.0.bb +++ b/meta/recipes-support/bdwgc/bdwgc_7.6.0.bb | |||
| @@ -24,6 +24,7 @@ LIC_FILES_CHKSUM = "file://README.QUICK;md5=4f81f24ec69726c312487c2ac740e9e3" | |||
| 24 | SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa" | 24 | SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa" |
| 25 | SRC_URI = "git://github.com/ivmai/bdwgc.git \ | 25 | SRC_URI = "git://github.com/ivmai/bdwgc.git \ |
| 26 | file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \ | 26 | file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \ |
| 27 | file://musl_header_fix.patch \ | ||
| 27 | " | 28 | " |
| 28 | 29 | ||
| 29 | FILES_${PN}-doc = "${datadir}" | 30 | FILES_${PN}-doc = "${datadir}" |
