2024-01-18 10:50:26 +00:00
|
|
|
OpenBSD also needs the _XOPEN_SOURCE_EXTENDED define.
|
|
|
|
|
|
|
|
|
|
Index: ttyplot.c
|
|
|
|
|
--- ttyplot.c.orig
|
|
|
|
|
+++ ttyplot.c
|
2025-03-23 21:43:01 +00:00
|
|
|
@@ -8,7 +8,7 @@
|
2024-01-18 10:50:26 +00:00
|
|
|
|
2025-09-15 10:58:51 +00:00
|
|
|
// 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__)
|
|
|
|
|
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
2024-01-18 10:50:26 +00:00
|
|
|
#define _XOPEN_SOURCE_EXTENDED
|
2024-02-05 18:38:08 +00:00
|
|
|
#else
|
|
|
|
|
// This is needed for musl libc
|