summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-08-12 22:38:52 +0100
committerRichard Hughes <richard@hughsie.com>2017-08-12 23:20:25 +0100
commit21fe8450d6259fc62a0f6793203647db150a3950 (patch)
treeb0dd47a8058dc32dc737bab18e3a58aedccb6d74
parent1c9c972a2a1fc16716e4be84d150d5a9ceb29fe2 (diff)
downloadcolord-21fe8450d6259fc62a0f6793203647db150a3950.tar.gz
build: Define _XOPEN_SOURCE in order to expose realpath() in headers
We need realpath() (and PATH_MAX) for the tests, both of which need 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 fa3ea62..cdbf8b5 100644
--- a/meson.build
+++ b/meson.build
@@ -195,6 +195,9 @@ i18n = import('i18n')
add_project_arguments('-DCD_COMPILATION', language: 'c')
+# Needed for realpath() and PATH_MAX
+add_project_arguments('-D_XOPEN_SOURCE=500', language : 'c')
+
conf.set_quoted('SYSCONFDIR', get_option('sysconfdir'))
conf.set_quoted('BINDIR',
join_paths(get_option('prefix'),