summaryrefslogtreecommitdiff
path: root/lang/baci/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'lang/baci/patches/patch-ai')
-rw-r--r--lang/baci/patches/patch-ai24
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/baci/patches/patch-ai b/lang/baci/patches/patch-ai
new file mode 100644
index 00000000000..40c3e67dc0f
--- /dev/null
+++ b/lang/baci/patches/patch-ai
@@ -0,0 +1,24 @@
+$NetBSD: patch-ai,v 1.1 2005/02/19 15:40:54 wiz Exp $
+
+--- ccomp/bac.l.orig 1999-08-31 18:19:04.000000000 +0200
++++ ccomp/bac.l
+@@ -3,6 +3,7 @@
+
+ #include <ctype.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+
+ #include "ytab.h"
+@@ -11,11 +12,6 @@
+ #include "../include/incfiles.h"
+ #include "../include/computil.h"
+
+-extern int printf(const char*,...);
+-extern int fprintf(FILE*,const char*,...);
+-extern size_t fwrite(const void*,size_t,size_t,FILE*);
+-extern int fgetc(FILE*);
+-extern int fputc(int,FILE*);
+ extern void yyerror(char*);
+
+ /* FLEX doesn't declare malloc and realloc before it uses them */