summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2025-03-18 22:23:14 +0100
committerKenny Levinsen <kl@kl.wtf>2025-03-18 22:31:01 +0100
commit0b10244dc09c7108e7046700a4cd0a64dde57380 (patch)
treed3bf6cd4cdb96ac3fec6cd60c12cd420b5263858 /meson.build
parent3415a7c9c10e6f5dace06cd222edd825e41e771d (diff)
Define _POSIX_C_SOURCE globally
Other Sway projects have switched to this approach.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f69ebfb..a530a2d 100644
--- a/meson.build
+++ b/meson.build
@@ -11,6 +11,8 @@ project(
],
)
+add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
+
add_project_arguments(
[
'-Wno-unused-parameter',