aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-04 07:23:30 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-04 07:24:24 +0200
commit5c32057c421a8faf10c9a12405ea97ef05198fe9 (patch)
tree81d0dd9680be116e79c967e50009476f0b0ecb9b
parent87e52856223a0e310b292389ba732b4b8d35e2c8 (diff)
downloaddesktop-tools-5c32057c421a8faf10c9a12405ea97ef05198fe9.tar.gz
desktop-tools-5c32057c421a8faf10c9a12405ea97ef05198fe9.tar.xz
desktop-tools-5c32057c421a8faf10c9a12405ea97ef05198fe9.zip
wmstatus: fix an OpenBSD build warning
Note that _GNU_SOURCE is there to imply _DEFAULT_SOURCE, for BYTE_ORDER.
-rw-r--r--wmstatus.c4
1 files changed, 3 insertions, 1 deletions
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