From 0487f26a55a7db0bcaca46cf4c1a022de90ca07d Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Wed, 15 Apr 2020 13:08:15 -0400 Subject: meson: Add _DEFAULT_SOURCE to ensure "default" functions are available Currently, PackageKit builds spew implicit function declaration warnings for usage of realpath(3), which is gated by a _DEFAULT_SOURCE define. Since we expect it to be usable, let's add the definition so it is. --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index 200102d18..38b183763 100644 --- a/meson.build +++ b/meson.build @@ -54,6 +54,9 @@ if dependency('ply-boot-client', version: '>=0.9.5', required: false).found() add_project_arguments ('-DPLYMOUTH_0_9_5=1', language: 'c') endif +# Ensure functions like realpath(3) and other "default" functions are available +add_project_arguments ('-D_DEFAULT_SOURCE', language: 'c') + # Avoid g_simple_async_result deprecation warnings in glib 2.46+ add_project_arguments ('-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44', language: 'c') -- cgit v1.2.3