ports/lang/smalltalk/files/patch-lib-src_getopt.c
Alexey Dokuchaev 24717118f7 lang/smalltalk: try to unbreak the port's build on fresh -CURRENT
While here, define LICENSE (GPLv2+) and hook the test suite to our
framework.  Currently, out of 130 tests, 8 fail (7, 8, 32, 41, 70,
118, and 122 with 1 expected failure), 1 test was skipped.

Reported by:	pkg-fallout
2023-07-06 11:39:00 +00:00

11 lines
315 B
C

--- lib-src/getopt.c.orig 2013-03-23 19:56:26 UTC
+++ lib-src/getopt.c
@@ -43,6 +43,8 @@
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C