diff options
author | Simon McVittie <smcv@collabora.com> | 2022-02-21 16:45:48 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-02-21 16:45:48 +0000 |
commit | 4c12bce1f9191820249dda3ac60fe36c77e1119c (patch) | |
tree | 1e1e1134ee6e048b1077450d771e572b0e8f593b | |
parent | 94f3bb70748c5add7f35e1556e32cfff754a850d (diff) | |
download | glib-wip/smcv/darwin-c-source.tar.gz |
build: Opt-in to Darwin extensionswip/smcv/darwin-c-source
In particular, this might give us access to `st_mtim.tv_nsec`. We
already opt-in to GNU and QNX extensions on a similar basis.
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index c79084ac4..41e6fdb0c 100644 --- a/meson.build +++ b/meson.build @@ -130,6 +130,10 @@ if host_system == 'qnx' add_project_arguments('-D_QNX_SOURCE', language: 'c') endif +if host_system == 'darwin' + add_project_arguments('-D_DARWIN_C_SOURCE', language: 'c') +endif + # Disable strict aliasing; # see https://bugzilla.gnome.org/show_bug.cgi?id=791622 if cc.has_argument('-fno-strict-aliasing') |