From 871463c32740d601241123770a65fea0d737fb54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Thu, 8 Sep 2022 00:10:53 -0500 Subject: [PATCH] define _POSIX_C_SOURCE through CPPFLAGS like dwm --- Makefile | 2 +- dwl.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1bdc7d67a994d6e1b7f048727ace3780f1c424dc..4afd7170216183a68ee5b42a3fcacff571d5ad26 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include config.mk # 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_PROTOCOLS = `pkg-config --variable=pkgdatadir wayland-protocols` diff --git a/dwl.c b/dwl.c index 58dc4db11daadea5dcbffc078c907632189f2f5c..530ee4ec4d52e123ff8a33447eb06d46ecf7eeca 100644 --- a/dwl.c +++ b/dwl.c @@ -1,7 +1,6 @@ /* * See LICENSE file for copyright and license details. */ -#define _POSIX_C_SOURCE 200809L #include #include #include