From 5c32057c421a8faf10c9a12405ea97ef05198fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 4 Jul 2023 07:23:30 +0200 Subject: [PATCH] wmstatus: fix an OpenBSD build warning Note that _GNU_SOURCE is there to imply _DEFAULT_SOURCE, for BYTE_ORDER. --- wmstatus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wmstatus.c b/wmstatus.c index 29cfa0f..4c91bba 100644 --- a/wmstatus.c +++ b/wmstatus.c @@ -20,7 +20,9 @@ #define LIBERTY_WANT_ASYNC #define LIBERTY_WANT_PROTO_MPD -#define _GNU_SOURCE // openat +// openat, dirfd +#define _XOPEN_SOURCE 700 +#define _GNU_SOURCE #include "config.h" #undef PROGRAM_NAME