From ba0332337a842eb857b244329dd72116de43e6fd Mon Sep 17 00:00:00 2001 From: Frederic Cambus Date: Mon, 22 Sep 2025 20:40:12 +0200 Subject: [PATCH] Add _XOPEN_SOURCE_EXTENDED define to allow compiling on OpenBSD. --- ttyplot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ttyplot.c b/ttyplot.c index 7fa561c..f9c265c 100644 --- a/ttyplot.c +++ b/ttyplot.c @@ -6,9 +6,9 @@ // Apache License 2.0 // -// This is needed on FreeBSD and macOS to get the ncurses widechar API, -// and pkg-config fails to define it. -#if defined(__APPLE__) || defined(__FreeBSD__) +// This is needed on FreeBSD, OpenBSD, and macOS to get the ncurses +// widechar API, and pkg-config fails to define it. +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) #define _XOPEN_SOURCE_EXTENDED #else // This is needed for musl libc