[pango] meson: Specify version when defining _POSIX_C_SOURCE



commit ffba476c2137c228c2574958d51c728d8a2d030c
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Mon Jun 5 21:32:42 2017 +0800

    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

 meson.build |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index a9c88d1..b54e485 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'))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]