blob: 72039488a3b7449d9523e1ed050600d193bd7933 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-ab,v 1.2 2005/06/19 20:44:06 minskim Exp $
--- defs.h.orig 2001-04-02 08:57:20.000000000 -0500
+++ defs.h
@@ -5,8 +5,9 @@
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
-#include <malloc.h>
-
+#include <stdlib.h>
+#include <unistd.h>
+#include <unistd.h>
/* machine-dependent definitions */
@@ -242,8 +243,8 @@ extern int nvars;
extern int ntags;
extern char unionized;
-extern char line_format[];
-extern char jline_format[];/*rwj*/
+extern const char *line_format;
+extern const char *jline_format;/*rwj*/
extern int start_symbol;
extern char **symbol_name;
@@ -291,8 +292,11 @@ extern short final_state;
/* system variables */
+#ifdef NEED_ERRNO
extern int errno;
-
+#else
+#include <errno.h>
+#endif
/************************
## PROTOTYPES
|