diff options
Diffstat (limited to 'recipes-extended/bdwgc/bdwgc/musl_header_fix.patch')
| -rw-r--r-- | recipes-extended/bdwgc/bdwgc/musl_header_fix.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch new file mode 100644 index 0000000..4a18496 --- /dev/null +++ b/recipes-extended/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. */ | ||
