summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2017-12-19 17:02:48 +0800
committerRichard Hughes <richard@hughsie.com>2018-01-16 13:59:47 +0000
commit406525b2a74660379f9fb228014277028d5b4d57 (patch)
tree179831dfe2a20225e70116a7476b4a619c19d7bf
parent325a638d180d8b7f6d64de462f3d699d55241e2c (diff)
downloadcolord-406525b2a74660379f9fb228014277028d5b4d57.tar.gz
build: Raise _XOPEN_SOURCE to 700 to enable C99 on FreeBSD
Defining _XOPEN_SOURCE to 500 limits the supported C standard version to C89 on FreeBSD, which causes compilation error because colord requires C99 features such as fpclassify and FP_ZERO.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index f0801e4..559a28f 100644
--- a/meson.build
+++ b/meson.build
@@ -200,7 +200,7 @@ 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')
+add_project_arguments('-D_XOPEN_SOURCE=700', language : 'c')
prefix = get_option('prefix')