freebsd-ports/lang/gforth/files/patch-getopt.c
Vanilla I. Shu e28fda86c6 Upgrade to 0.6.1.
PR:		ports/51764
Submitted by:	maintainer
2003-05-06 08:53:15 +00:00

17 lines
566 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- engine/getopt.c.orig Sat Sep 23 20:22:09 2000
+++ engine/getopt.c Fri Mar 16 01:42:49 2001
@@ -177,12 +177,12 @@
REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
} ordering, default_ordering = PERMUTE;
+#include <string.h>
#ifdef __GNU_LIBRARY__
/* We want to avoid inclusion of string.h with non-GNU libraries
because there are many ways it can cause trouble.
On some systems, it contains special magic macros that don't work
in GCC. */
-#include <string.h>
#define my_index strchr
#define my_bcopy(src, dst, n) memcpy ((dst), (src), (n))
#else