summaryrefslogtreecommitdiff
path: root/games-misc/bsd-games/files/bsd-games-2.17-gcc4.patch
blob: dabb38460a66ed70b2d20b7efdfd71a738a2ac45 (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
--- a/trek/getpar.h
+++ b/trek/getpar.h
@@ -31,6 +31,9 @@
  *	@(#)getpar.h	8.1 (Berkeley) 5/31/93
  */
 
+#ifndef __GETPAR_H_
+#define __GETPAR_H_
+
 typedef void (*cmdfun)(int);
 struct cvntab		/* used for getcodpar() parameter list */
 {
@@ -51,3 +54,5 @@
 int testnl(void);
 void skiptonl(int);
 int readdelim(int);
+
+#endif /*__GETPAR_H_*/
--- a/trek/trek.h
+++ b/trek/trek.h
@@ -31,6 +31,13 @@
  *	@(#)trek.h	8.1 (Berkeley) 5/31/93
  */
 
+/* For struct cvntab definition, which is now required for
+ * Skitab and Lentab below.  gcc 4.0 and later will emit
+ * "array type has incomplete element type" errors otherwise.
+ * -- Jason Bucata (jbucata@tulsaconnect.com), 12-AUG-2005
+ */
+#include "getpar.h"
+
 /*
 **  Global Declarations
 **