Globally define _POSIX_C_SOURCE in meson.build

Fix musl issue with time.h
This commit is contained in:
Dan Shick 2020-04-22 15:51:12 -04:00 committed by Simon Ser
parent f6d14d9206
commit 229a34a9fe
3 changed files with 1 additions and 4 deletions

View File

@ -17,6 +17,7 @@ add_project_arguments(cc.get_supported_arguments([
'-Wno-missing-braces',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
'-D_POSIX_C_SOURCE=200809L',
]), language: 'c')
inc = include_directories('include')

View File

@ -1,5 +1,3 @@
#define _POSIX_C_SOURCE 200809L
#include "screencast.h"
#include <errno.h>

View File

@ -1,5 +1,3 @@
#define _POSIX_C_SOURCE 200809L
#include "wlr_screencast.h"
#include "wlr-screencopy-unstable-v1-client-protocol.h"