define _POSIX_C_SOURCE through CPPFLAGS

like dwm
This commit is contained in:
Leonardo Hernández Hernández 2022-09-08 00:10:53 -05:00
parent d1496a2a9b
commit 871463c327
Failed to generate hash of commit
2 changed files with 1 additions and 2 deletions

View file

@ -4,7 +4,7 @@
include config.mk include config.mk
# flags for compiling # flags for compiling
DWLCPPFLAGS = -I. -DWLR_USE_UNSTABLE -DVERSION=\"$(VERSION)\" DWLCPPFLAGS = -I. -DWLR_USE_UNSTABLE -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\"
# Wayland utils # Wayland utils
WAYLAND_PROTOCOLS = `pkg-config --variable=pkgdatadir wayland-protocols` WAYLAND_PROTOCOLS = `pkg-config --variable=pkgdatadir wayland-protocols`

1
dwl.c
View file

@ -1,7 +1,6 @@
/* /*
* See LICENSE file for copyright and license details. * See LICENSE file for copyright and license details.
*/ */
#define _POSIX_C_SOURCE 200809L
#include <getopt.h> #include <getopt.h>
#include <libinput.h> #include <libinput.h>
#include <limits.h> #include <limits.h>