diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-05-12 16:46:31 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-14 14:15:11 +0100 |
commit | 344deae2004356d121e4302640d57ff579cc1dc6 (patch) | |
tree | 61db061b47e4cc2ea50c9bdd567edda87075ccad /meta/recipes-graphics/wayland | |
parent | 38543222aa908ee0f197900627c0569201a073b7 (diff) | |
download | poky-344deae2004356d121e4302640d57ff579cc1dc6.tar.gz |
wayland: fix condition for strndup detection
current check does not work with gcc10
(From OE-Core rev: ce6c50ea68c34e02b487d54fdd9288e04833cdef)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland')
-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 | |||
17 | meson.build | 2 +- | 17 | meson.build | 2 +- |
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
19 | 19 | ||
20 | diff --git a/meson.build b/meson.build | ||
21 | index 26b084f..c05d019 100644 | ||
22 | --- a/meson.build | 20 | --- a/meson.build |
23 | +++ b/meson.build | 21 | +++ b/meson.build |
24 | @@ -36,11 +36,11 @@ have_funcs = [ | 22 | @@ -36,11 +36,11 @@ have_funcs = [ |
@@ -30,10 +28,7 @@ index 26b084f..c05d019 100644 | |||
30 | foreach f: have_funcs | 28 | foreach f: have_funcs |
31 | config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f)) | 29 | config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f)) |
32 | endforeach | 30 | endforeach |
33 | +config_h.set('HAVE_STRNDUP', cc.has_function('strndup', prefix:'#include <string.h>')) | 31 | +config_h.set('HAVE_STRNDUP', cc.has_function('strndup') and cc.has_header_symbol('string.h', 'strndup')) |
34 | 32 | ||
35 | if get_option('libraries') | 33 | if get_option('libraries') |
36 | ffi_dep = dependency('libffi') | 34 | ffi_dep = dependency('libffi') |
37 | -- | ||
38 | 2.17.1 | ||
39 | |||