aboutsummaryrefslogtreecommitdiff
path: root/games/adl/compilefixes11.diff
blob: 332c3ec40a9eaaae476fc608c4d11d8439be3e11 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
diff -Naur adl-20110628/adlcomp/Makefile adl-20110628.work/adlcomp/Makefile
--- adl-20110628/adlcomp/Makefile	2004-05-03 20:02:56.000000000 -0400
+++ adl-20110628.work/adlcomp/Makefile	2018-01-22 13:56:24.643486172 -0500
@@ -16,7 +16,7 @@
 # Flags for CC
 CC = gcc
 OPTG =
-CFLAGS = -I${INC} $(OPTG) '-DADL_NAME="${BIN}/adlrun"'
+CFLAGS = -I${INC} $(OPTG) '-DADL_NAME="/usr/games/adlrun11"'
 
 # Flags for lint
 LFLAGS = -DLINT -I${INC} -C
diff -Naur adl-20110628/adlcomp/compdict.c adl-20110628.work/adlcomp/compdict.c
--- adl-20110628/adlcomp/compdict.c	2004-05-02 18:54:16.000000000 -0400
+++ adl-20110628.work/adlcomp/compdict.c	2018-01-22 13:29:34.829483442 -0500
@@ -15,9 +15,6 @@
 
 #define HTSIZE 512		/* Size of a hash table */
 
-char
-    *calloc();
-
 /* Structure of a hash table entry */
 struct hash_entry {
     struct symbol
diff -Naur adl-20110628/adlrun/Makefile adl-20110628.work/adlrun/Makefile
--- adl-20110628/adlrun/Makefile	2004-01-03 00:15:24.000000000 -0500
+++ adl-20110628.work/adlrun/Makefile	2018-01-22 13:56:07.076486143 -0500
@@ -16,7 +16,7 @@
 BIN = /users/cunniff/bin
 
 # Flags for CC
-CFLAGS = -I$(INC) -O
+CFLAGS = -I$(INC) -O $(OPTFLAGS)
 CC = gcc
 
 # Flags for the linker - you may need to change -lcurses to -ltermcap
diff -Naur adl-20110628/adlrun/adlrun.c adl-20110628.work/adlrun/adlrun.c
--- adl-20110628/adlrun/adlrun.c	2004-01-01 13:42:46.000000000 -0500
+++ adl-20110628.work/adlrun/adlrun.c	2018-01-22 14:30:29.347489640 -0500
@@ -157,7 +157,7 @@
 	insertkey( "then",	SEP,	0, 0 );
 
 	rand_seed();
-        infile = fopen( inname, "rb+" );
+        infile = fopen( inname, "rb" );
 	if( !infile ) {
 	    fprintf( stderr, "Error opening file %s\n", inname );
 	    exit( -1 );
diff -Naur adl-20110628/include/adltypes.h adl-20110628.work/include/adltypes.h
--- adl-20110628/include/adltypes.h	2004-01-01 13:42:46.000000000 -0500
+++ adl-20110628.work/include/adltypes.h	2018-01-22 13:32:47.774483769 -0500
@@ -1,3 +1,10 @@
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/wait.h>
+
 #include "undef.h"		/* Undefine any predefined things */
 
 	/***************************************************************\
diff -Naur adl-20110628/misc/Makefile adl-20110628.work/misc/Makefile
--- adl-20110628/misc/Makefile	2002-01-29 00:10:08.000000000 -0500
+++ adl-20110628.work/misc/Makefile	2018-01-22 13:55:50.787486115 -0500
@@ -5,7 +5,7 @@
 INC = ../include
 
 # Flags for CC
-CFLAGS = -O -DHPUX -I${INC}
+CFLAGS = -O -DHPUX -I${INC} $(OPTFLAGS)
 CC = gcc
 
 # Commands for shar
diff -Naur adl-20110628/samples/mpu/Makefile adl-20110628.work/samples/mpu/Makefile
--- adl-20110628/samples/mpu/Makefile	2011-01-13 11:16:29.000000000 -0500
+++ adl-20110628.work/samples/mpu/Makefile	2018-01-22 14:28:53.217489477 -0500
@@ -12,7 +12,7 @@
 shar		: mpu1.shar	mpu2.shar
 
 clean		:
-	rm -f.adx mpu core mpu1.shar mpu2.shar
+	rm -f .adx mpu core mpu1.shar mpu2.shar
 
 mpu1.shar	: README	COPYRIGHT	Makefile	locales.adl \
 		  mpu.adl	routines.adl	verbs.adl
diff -Naur adl-20110628/util/Makefile adl-20110628.work/util/Makefile
--- adl-20110628/util/Makefile	2002-01-29 00:10:08.000000000 -0500
+++ adl-20110628.work/util/Makefile	2018-01-22 13:55:45.222486106 -0500
@@ -6,7 +6,7 @@
 
 DFLAGS = -O
 CC = gcc
-CFLAGS = -I${INC} ${DFLAGS}
+CFLAGS = -I${INC} ${DFLAGS} $(OPTFLAGS)
 
 OBJS = vstring.o	virtmem.o 	  mytime.o