diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2017-06-05 21:32:42 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2017-07-18 22:54:58 +0800 |
commit | ffba476c2137c228c2574958d51c728d8a2d030c (patch) | |
tree | 71e79538bbe72c50e5ae0e6ad8b3355917cc6b31 /meson.build | |
parent | 2e107ff2323ba2ede1c864d25e5f34ae054852ba (diff) | |
download | pango-ffba476c2137c228c2574958d51c728d8a2d030c.tar.gz |
meson: Specify version when defining _POSIX_C_SOURCE
FreeBSD libc assumes defining _POSIX_C_SOURCE without specifying a
version means a pre-C89 environment with the oldest version of POSIX
standard, IEEE Std 1003.1-1988, causing several functions used by pango
to be undeclared. To resolve this problem, simply provide a version
number when defining _POSIX_C_SOURCE.
https://bugzilla.gnome.org/show_bug.cgi?id=783428
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index a9c88d18..b54e4855 100644 --- a/meson.build +++ b/meson.build @@ -8,7 +8,7 @@ project('pango', 'c', 'cpp', ], meson_version : '>= 0.40.1') -add_project_arguments([ '-D_POSIX_C_SOURCE', '-D_POSIX_THREAD_SAFE_FUNCTIONS', '-D_GNU_SOURCE', ], language: 'c') +add_project_arguments([ '-D_POSIX_C_SOURCE=200809L', '-D_POSIX_THREAD_SAFE_FUNCTIONS', '-D_GNU_SOURCE', ], language: 'c') pango_prefix = get_option('prefix') pango_libdir = join_paths(pango_prefix, get_option('libdir')) |