diff options
author | 2015-12-29 23:25:47 +0000 | |
---|---|---|
committer | 2016-01-22 23:42:47 +0000 | |
commit | 9c8af6b8dd40c98aca86d5b4858598e94ccaede5 (patch) | |
tree | 6203c7bdbb2f4d409b776d0d7b22fc49410dddbd /meta/recipes-graphics/directfb/directfb/union-sigval.patch | |
parent | 1eaa3e101d04fd9e73b3c680f305b35f9bb16add (diff) | |
download | openembedded-core-contrib-9c8af6b8dd40c98aca86d5b4858598e94ccaede5.tar.gz |
directfb: Fix build with musl
compar_fn_t, sigval_t and non-posix recursive mutexes
are not available in musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-graphics/directfb/directfb/union-sigval.patch')
-rw-r--r-- | meta/recipes-graphics/directfb/directfb/union-sigval.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-graphics/directfb/directfb/union-sigval.patch b/meta/recipes-graphics/directfb/directfb/union-sigval.patch new file mode 100644 index 0000000000..29f45c7977 --- /dev/null +++ b/meta/recipes-graphics/directfb/directfb/union-sigval.patch @@ -0,0 +1,19 @@ +This patch is taken from gentoo musl overlay +sigval_t is glibc only construct, we use a union of sigval +which pretty much is same effect as sigval_t + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +diff -Naur DirectFB-1.7.6.orig/lib/direct/os/linux/glibc/system.c DirectFB-1.7.6/lib/direct/os/linux/glibc/system.c +--- DirectFB-1.7.6.orig/lib/direct/os/linux/glibc/system.c 2014-07-15 02:54:58.000000000 -0400 ++++ DirectFB-1.7.6/lib/direct/os/linux/glibc/system.c 2015-07-18 16:55:35.077989166 -0400 +@@ -111,7 +111,7 @@ + void + direct_trap( const char *domain, int sig ) + { +- sigval_t val; ++ union sigval val; + + if (direct_config->delay_trap_ms) { + D_LOG( Direct_Trap, VERBOSE, "NOT RAISING signal %d from %s, waiting for %dms... attach gdb --pid=%d\n", sig, domain, direct_config->delay_trap_ms, getpid() ); |