mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-22 17:59:47 +01:00
Globally define _POSIX_C_SOURCE in meson.build
Fix musl issue with time.h
This commit is contained in:
parent
f6d14d9206
commit
229a34a9fe
3 changed files with 1 additions and 4 deletions
|
@ -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')
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "screencast.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "wlr_screencast.h"
|
||||
|
||||
#include "wlr-screencopy-unstable-v1-client-protocol.h"
|
||||
|
|
Loading…
Reference in a new issue