ports/graphics/ttyplot/files/patch-ttyplot.c
Wolfgang Medina-Erhardt 0256b0d8c1 graphics/ttyplot: Add patches required for 1.7.0
The committer missed those two files when committing the original patch.

PR:	281609
Fixes:	23ac00be48 graphics/ttyplot: Update version 1.4 => 1.7.0
2024-09-30 14:52:05 +02:00

11 lines
315 B
C

--- ttyplot.c.orig 2024-08-02 02:32:02 UTC
+++ ttyplot.c
@@ -9,7 +9,7 @@
// This is needed on macOS to get the ncurses widechar API, and pkg-config fails to
// define it.
-#ifdef __APPLE__
+#if defined (__APPLE__) || defined (__FreeBSD__)
#define _XOPEN_SOURCE_EXTENDED
#else
// This is needed for musl libc