Files
ports/lang/gforth/files/patch-engine_getopt.h
T
Alexey Dokuchaev a02b3fd72d lang/gforth: try to unbreak the port's build against GCC 15
... by pulling two upstream patches.  While here, spell out
ANS Forth (1994) in the COMMENT and port description, fix a
typo, and provide a more meaningful MAKE_JOBS_UNSAFE reason.

PR:	293330
2026-02-24 17:40:06 +00:00

12 lines
427 B
C

--- engine/getopt.h.orig 2013-10-11 21:31:28 UTC
+++ engine/getopt.h
@@ -95,7 +95,7 @@ struct option
#define optional_argument 2
#if __STDC__
-#if defined(__GNU_LIBRARY__)
+#if defined(__GNU_LIBRARY__) || defined(__FreeBSD__)
/* Many other libraries have conflicting prototypes for getopt, with
differences in the consts, in stdlib.h. To avoid compilation
errors, only prototype getopt for the GNU C library. */