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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
diff -abur common/console.c common/console.c
--- common/console.c 2000-09-27 16:19:44.000000000 +0200
+++ common/console.c 2003-09-11 19:59:46.037562040 +0200
@@ -3,6 +3,14 @@
#include "id_us.h"
#include "console.h"
+#ifdef _LINUX
+#include <string.h>
+#endif
+
+#ifdef _LINUX
+#include <string.h>
+#endif
+
static char con_lines[32][45]; // buffer
static int con_active; // console is visible
static int con_current; // current line
Only in common: console.c.orig
diff -abur common/id_in.h common/id_in.h
--- common/id_in.h 2000-09-27 16:04:26.000000000 +0200
+++ common/id_in.h 2003-09-11 19:32:14.368653880 +0200
@@ -178,6 +178,7 @@
void IN_Startup();
void IN_Shutdown();
+void IN_KeyEvent(unsigned char key);
void IN_Default(wbool gotit, ControlType in);
void IN_ClearKeysDown();
void IN_ReadControl(int player, ControlInfo *info);
Only in common: id_in.h.rej
diff -abur common/id_vh.c common/id_vh.c
--- common/id_vh.c 2000-09-26 17:39:36.000000000 +0200
+++ common/id_vh.c 2003-09-11 19:24:57.183116184 +0200
@@ -230,3 +230,4 @@
}
*/
\ No newline at end of file
+
Only in common: id_vh.c.rej
diff -abur common/opengl.c common/opengl.c
--- common/opengl.c 2000-09-27 16:04:26.000000000 +0200
+++ common/opengl.c 2003-09-11 19:22:35.622636648 +0200
@@ -1,5 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
+
+#ifdef _LINUX
+#include <string.h>
+#endif
+
#include "system.h"
#include "opengl.h"
#include "wl_def.h"
diff -abur common/wl_act2.c common/wl_act2.c
--- common/wl_act2.c 2000-09-27 16:04:26.000000000 +0200
+++ common/wl_act2.c 2003-09-11 19:19:45.511497472 +0200
@@ -1,5 +1,9 @@
// WL_ACT2.C
+#ifdef _LINUX
+#include <stdlib.h>
+#endif
+
#include "wl_def.h"
//=============================================================================
diff -abur common/wl_agent.c common/wl_agent.c
--- common/wl_agent.c 2003-09-11 20:04:40.738760648 +0200
+++ common/wl_agent.c 2003-09-11 19:57:06.860760592 +0200
@@ -3,6 +3,10 @@
#include <string.h>
#include "wl_def.h"
+#ifdef _LINUX
+#include <stdlib.h>
+#endif
+
//=============================================================================
// LOCAL CONSTANTS
//=============================================================================
diff -abur common/wl_draw.c common/wl_draw.c
--- common/wl_draw.c 2003-09-11 20:04:40.739760496 +0200
+++ common/wl_draw.c 2003-09-11 19:20:33.512200256 +0200
@@ -2,6 +2,11 @@
#include <stdio.h>
#include <stdlib.h>
+
+#ifdef _LINUX
+#include <string.h>
+#endif
+
#include "system.h"
#include "opengl.h"
#include "wl_def.h"
diff -abur common/wl_menu.c common/wl_menu.c
--- common/wl_menu.c 2000-09-27 16:04:27.000000000 +0200
+++ common/wl_menu.c 2003-09-11 20:07:38.892677136 +0200
@@ -5,6 +5,10 @@
//
////////////////////////////////////////////////////////////////////
+#ifdef _LINUX
+#include "../linux/input.h"
+#endif
+
#include <string.h>
#include "opengl.h"
#include "wl_def.h"
diff -abur common/wl_menu.h common/wl_menu.h
--- common/wl_menu.h 2000-09-26 17:38:31.000000000 +0200
+++ common/wl_menu.h 2003-09-11 18:31:41.593919584 +0200
@@ -233,3 +233,4 @@
void NonShareware();
/*int GetYorN(int x,int y,int pic);
*/
\ No newline at end of file
+
diff -abur common/wl_play.c common/wl_play.c
--- common/wl_play.c 2000-09-27 16:04:27.000000000 +0200
+++ common/wl_play.c 2003-09-11 19:40:31.293109880 +0200
@@ -1,6 +1,11 @@
// WL_PLAY.C
#include <memory.h>
+
+#ifdef _LINUX
+#include "../linux/input.h"
+#endif
+
#include "wl_def.h"
#include "system.h"
diff -abur common/wl_state.c common/wl_state.c
--- common/wl_state.c 2000-09-27 16:04:27.000000000 +0200
+++ common/wl_state.c 2003-09-11 19:23:26.895841936 +0200
@@ -2,6 +2,10 @@
#include "wl_def.h"
+#ifdef _LINUX
+#include <stdlib.h>
+#endif
+
//=============================================================================
// GLOBAL VARIABLES
//=============================================================================
diff -abur common/wl_text.c common/wl_text.c
--- common/wl_text.c 2000-09-26 17:40:23.000000000 +0200
+++ common/wl_text.c 2003-09-11 19:19:00.110399488 +0200
@@ -4,6 +4,10 @@
#include "wl_def.h"
#include "system.h"
+#ifdef _LINUX
+#include <string.h>
+#endif
+
#ifndef SPEAR
void FreeMusic(); // WL_MENU.C
diff -abur linux/sound.c linux/sound.c
--- linux/sound.c 2000-09-26 17:57:48.000000000 +0200
+++ linux/sound.c 2003-09-11 19:55:16.702507192 +0200
@@ -9,6 +9,8 @@
#include <stdlib.h>
#include <sys/time.h>
+#include <string.h>
+#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
diff -abur linux/sound.h linux/sound.h
--- linux/sound.h 2000-09-26 17:57:48.000000000 +0200
+++ linux/sound.h 2003-09-11 19:44:03.663824624 +0200
@@ -1,5 +1,8 @@
void S_LoadSound(int id, void* data, long length);
void S_PlaySound(int id, int pan);
+void S_UpdateSound();
+void S_InitSound();
+void S_ShutDownSound();
extern int DigitalDevice;
diff -abur linux/system.c linux/system.c
--- linux/system.c 2000-09-26 17:57:48.000000000 +0200
+++ linux/system.c 2003-09-11 19:42:14.955350824 +0200
@@ -1,9 +1,12 @@
#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include <sys/time.h>
#include <X11/keysym.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include "wl_def.h"
+#include "sound.h"
int screen_width, screen_height;
Display *dpy;
@@ -117,7 +120,7 @@
visinfo = glXChooseVisual( dpy, scrnum, attrib );
if (!visinfo) {
printf("Error: couldn't get an RGB, Double-buffered visual\n");
- exit(1);
+ _exit(1);
}
/* window attributes */
|