[gtk+/wip/meson: 156/215] meson: work around meson/gcc bug detecting linux/* headers
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/meson: 156/215] meson: work around meson/gcc bug detecting linux/* headers
- Date: Tue, 18 Apr 2017 13:45:44 +0000 (UTC)
commit 2c313e722145934699eed32cf2921b702f54d0e9
Author: Tim-Philipp Müller <tim centricular com>
Date: Sat Mar 11 22:11:07 2017 +0000
meson: work around meson/gcc bug detecting linux/* headers
meson.build | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 196e3e1..7aee9cc 100644
--- a/meson.build
+++ b/meson.build
@@ -89,7 +89,7 @@ check_headers = [
['HAVE_SYS_TIME_H', 'sys/time.h'],
['HAVE_SYS_TYPES_H', 'sys/types.h'],
['HAVE_UNISTD_H', 'unistd.h'],
- ['HAVE_LINUX_MEMFD_H', 'linux/memfd.h'],
+ #['HAVE_LINUX_MEMFD_H', 'linux/memfd.h'], # FIXME: doesn't work, see below
]
foreach h : check_headers
@@ -98,6 +98,13 @@ foreach h : check_headers
endif
endforeach
+# FIXME: cc.has_header('linux/memfd.h') doesn't work with meson 0.39 and gcc
+# https://github.com/mesonbuild/meson/issues/1458
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80005
+if cc.has_header_symbol('linux/memfd.h', 'MFD_CLOEXEC')
+ cdata.set('HAVE_LINUX_MEMFD_H', 1)
+endif
+
check_functions = [
# check token HAVE_BIND_TEXTDOMAIN_CODESET
# check token HAVE_CUPS_API_1_6
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]