diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-05-12 16:46:31 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2020-06-16 17:06:39 -1000 |
commit | 7a0f9b4fed4fec0cb0925231bb0ba4bbbb4bb3a9 (patch) | |
tree | 04ad18de102142cc260fca92cb2a2c6eb5caccb2 /meta | |
parent | 04e5d5f5a4318c826768146f5cd5de03fd152550 (diff) | |
download | openembedded-core-contrib-7a0f9b4fed4fec0cb0925231bb0ba4bbbb4bb3a9.tar.gz |
wayland: fix condition for strndup detection
current check does not work with gcc10
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ce6c50ea68c34e02b487d54fdd9288e04833cdef)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/wayland/wayland/0001-build-Fix-strndup-detection-on-MinGW.patch | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/recipes-graphics/wayland/wayland/0001-build-Fix-strndup-detection-on-MinGW.patch b/meta/recipes-graphics/wayland/wayland/0001-build-Fix-strndup-detection-on-MinGW.patch index e445838750..c2ceae4a47 100644 --- a/meta/recipes-graphics/wayland/wayland/0001-build-Fix-strndup-detection-on-MinGW.patch +++ b/meta/recipes-graphics/wayland/wayland/0001-build-Fix-strndup-detection-on-MinGW.patch @@ -17,8 +17,6 @@ Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/wayland/merge meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/meson.build b/meson.build -index 26b084f..c05d019 100644 --- a/meson.build +++ b/meson.build @@ -36,11 +36,11 @@ have_funcs = [ @@ -30,10 +28,7 @@ index 26b084f..c05d019 100644 foreach f: have_funcs config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f)) endforeach -+config_h.set('HAVE_STRNDUP', cc.has_function('strndup', prefix:'#include <string.h>')) ++config_h.set('HAVE_STRNDUP', cc.has_function('strndup') and cc.has_header_symbol('string.h', 'strndup')) if get_option('libraries') ffi_dep = dependency('libffi') --- -2.17.1 - |