summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2021-08-07 05:37:30 +0000
committerAdrian Johnson <ajohnson@redneon.com>2021-08-07 05:37:30 +0000
commited017e10f9c21b69ede1346e97f2ff0333d5465e (patch)
treeaa720f19eec20bba51d0c06c81a9b2af14eac709
parent69fdca480cb661f61bbaf64bcb91ca9ee4e188d7 (diff)
parent3ee18ffc28be480b1c8bfb072f73a991734b3c25 (diff)
Merge branch 'STRNDUP-bug' into 'master'
Added extra check for HAVE_STRNDUP in Win32 Mingw Meson build See merge request cairo/cairo!226
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 5ddf7868b..f3ff3b4b8 100644
--- a/meson.build
+++ b/meson.build
@@ -115,7 +115,6 @@ check_funcs = [
'funlockfile',
'getline',
'link',
- 'strndup',
'fork',
'waitpid',
'raise',
@@ -820,6 +819,8 @@ foreach name : check_funcs
endif
endforeach
+conf.set('HAVE_STRNDUP', cc.has_function('strndup', prefix : '#include <string.h>'))
+
pthread_c_args = []
pthread_link_args = []