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/bdwgc/bdwgc | |
parent | bd02a3851c95ebdfcf2d3c672fab15a3be1df08e (diff) | |
download | openembedded-core-contrib-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/bdwgc/bdwgc')
-rw-r--r-- | meta/recipes-support/bdwgc/bdwgc/musl_header_fix.patch | 27 |
1 files changed, 27 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 @@ +Add missing header to avoid: + +| 1472659610.016355: ../git/pthread_stop_world.c: In function 'GC_brief_async_signal_safe_sleep': +| 1472659610.0540252: ../git/pthread_stop_world.c:397:22: error: storage size of 'tv' isn't known +| 1472659610.0540252: struct timeval tv; +| 1472659610.0540252: ^~ +| 1472659610.054099: ../git/pthread_stop_world.c:397:22: warning: unused variable 'tv' [-Wunused-variable] +| 1472659610.054099: struct timeval tv; +| 1472659610.054099: ^~ +| 1472659610.054099: Makefile:1530: recipe for target 'pthread_stop_world.lo' failed + +in musl builds. + +Upstream-Status: Pending + +Index: git/pthread_stop_world.c +=================================================================== +--- git.orig/pthread_stop_world.c ++++ git/pthread_stop_world.c +@@ -45,6 +45,7 @@ + #include <semaphore.h> + #include <errno.h> + #include <unistd.h> ++#include <sys/time.h> + #include "atomic_ops.h" + + /* It's safe to call original pthread_sigmask() here. */ |