summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-04-18 19:39:01 +0200
committerChristian Persch <chpe@src.gnome.org>2022-04-18 19:39:01 +0200
commit8c4b920cba056d1100a15eae5f4aa02c92452dcb (patch)
treefa3256c44cf4c2bcbf5bee26bce5d493ccbe2aad
parente53cd45100848bfe782dbc5c4bf47ca94c46ec16 (diff)
downloadvte-8c4b920cba056d1100a15eae5f4aa02c92452dcb.tar.gz
build: Try to fix pwrite detection on non-glibc systems
Define _POSIX_C_SOURCE for POSIX 2008.
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index abe7e8fd..2d35be83 100644
--- a/meson.build
+++ b/meson.build
@@ -204,6 +204,7 @@ endif
# FIXME AC_USE_SYSTEM_EXTENSIONS also supported non-gnu systems
config_h.set10('_GNU_SOURCE', true)
+config_h.set('_POSIX_C_SOURCE', '200809L')
# Check headers
@@ -386,7 +387,7 @@ foreach func: check_functions
__code,
args: [
'-D_GNU_SOURCE',
- '-D_XOPEN_SOURCE',
+ '-D_POSIX_C_SOURCE=200809L',
],
dependencies: __deps,
name: __name,