summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-08-14 22:55:38 +0100
committerRichard Hughes <richard@hughsie.com>2017-08-15 07:22:05 +0100
commitea5cba921a11476b1305c44fe88ab85bd6f71985 (patch)
tree37a8cd430be89bbdb6b30799408530109ed2e1d6
parent2be870a02497f9f66349a041a735fb2bff2a054c (diff)
downloadappstream-glib-ea5cba921a11476b1305c44fe88ab85bd6f71985.tar.gz
build: Define _XOPEN_SOURCE in order to expose realpath() in headers
We need realpath() for libappstream-builder, which needs the _XOPEN_SOURCE feature test macro. Define it. Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 414cf56..ecb37c9 100644
--- a/meson.build
+++ b/meson.build
@@ -113,6 +113,9 @@ configure_file(
add_global_arguments('-DAS_COMPILATION', language : 'c')
+# Needed for realpath()
+add_project_arguments('-D_XOPEN_SOURCE=500', language : 'c')
+
subdir('libappstream-glib')
subdir('data')
subdir('docs')