summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Gompa <ngompa13@gmail.com>2020-04-15 13:08:15 -0400
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>2020-04-15 13:14:37 -0400
commit0487f26a55a7db0bcaca46cf4c1a022de90ca07d (patch)
treeb625b4ad50a67131bb7c23184c9877c8dc803ea4
parentb3ccec41d2440d1860e214e72835b3544c18bc8b (diff)
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.
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
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')