From 1f1f177ff797ac2bb453168951135865cfded900 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 23 Sep 2022 16:26:27 +0200 Subject: build: Add define for darwin Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2592 (cherry picked from commit 8ef3f6b2f8043d28cbc82520eb094f09333b26ae) --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 1377e971..51da7d71 100644 --- a/meson.build +++ b/meson.build @@ -229,6 +229,12 @@ if system == 'freebsd' libc_feature_defines = [] +elif system == 'darwin' + # See issue #2592 + libc_feature_defines += [ + ['_DARWIN_C_SOURCE', '1'], + ] + elif system == 'netbsd' libc_feature_defines += [ ['_NETBSD_SOURCE', '1'], -- cgit v1.2.1