summaryrefslogtreecommitdiff
path: root/games/mvdsv/files/patch-sv_sys_unix.c
blob: 06de97204c5ae77ae68f4585e53ee514b29e3378 (plain) (blame)
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
--- sv_sys_unix.c.orig	Tue Jun  3 17:53:55 2003
+++ sv_sys_unix.c	Tue Jun  3 17:59:41 2003
@@ -24,7 +24,7 @@
 #include <libc.h>
 #endif
 
-#if defined(__linux__) || defined(sun) || defined(__GNUC__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(sun) || defined(__GNUC__)
 #include <sys/stat.h>
 #include <unistd.h>
 #include <sys/time.h>
@@ -364,7 +364,7 @@
 =============
 */
 
-void main (int argc, char *argv[])
+int main (int argc, char *argv[])
 {
 	double			time, oldtime, newtime;
 	quakeparms_t	parms;
@@ -444,5 +444,6 @@
 			usleep (sys_extrasleep.value);
 	}
 #endif
+	return (1);	/* should never reach here */
 }