pkgsrc/devel/gentle/patches/patch-bi
2017-01-04 12:53:49 +00:00

22 lines
514 B
Text

$NetBSD: patch-bi,v 1.2 2017/01/04 12:53:49 jperkin Exp $
Add standard includes needed for LP64 build.
Ensure the local yywrap is used.
--- reflex/reflex.c.orig 1998-08-20 13:56:10.000000000 +0000
+++ reflex/reflex.c
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
/* ( 1) %{ */
/* ( 2) YYSTYPE block */
@@ -76,6 +78,7 @@ char *lexfunc[] = {
};
/* (15) YYWRAP block */
char *yywrap[] = {
+ "#undef yywrap",
"#ifndef yywrap",
"yywrap() { return 1; }",
"#endif",