aboutsummaryrefslogtreecommitdiff
path: root/games/qcc
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2012-01-31 08:46:59 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2012-01-31 08:46:59 +0000
commit94530ad4000f0366fd9c66a430302860787c0131 (patch)
tree5baceec7c91eaa597bc12c2a38ecb904366c968e /games/qcc
parent057a0425ca99ff8996d6903c825a4f706021b7b6 (diff)
downloadports-94530ad4000f0366fd9c66a430302860787c0131.tar.gz
ports-94530ad4000f0366fd9c66a430302860787c0131.zip
Fix the build with Clang.
Submitted by: Cyril Roelandt
Notes
Notes: svn path=/head/; revision=290163
Diffstat (limited to 'games/qcc')
-rw-r--r--games/qcc/files/patch-qcc.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/games/qcc/files/patch-qcc.c b/games/qcc/files/patch-qcc.c
new file mode 100644
index 000000000000..d4144f47b529
--- /dev/null
+++ b/games/qcc/files/patch-qcc.c
@@ -0,0 +1,27 @@
+--- qcc.c.orig 2012-01-31 16:40:51.000000000 +0800
++++ qcc.c 2012-01-31 16:41:46.000000000 +0800
+@@ -1025,7 +1025,7 @@
+ main
+ ============
+ */
+-void main (int argc, char **argv)
++int main (int argc, char **argv)
+ {
+ char *src;
+ char *src2;
+@@ -1043,7 +1043,7 @@
+ printf ("to build a clean data tree: qcc -copy <srcdir> <destdir>\n");
+ printf ("to build a clean pak file: qcc -pak <srcdir> <packfile>\n");
+ printf ("to bsp all bmodels: qcc -bspmodels <gamedir>\n");
+- return;
++ return EXIT_SUCCESS;
+ }
+
+ p = CheckParm ("-src");
+@@ -1112,4 +1112,6 @@
+
+ // report / copy the data files
+ CopyFiles ();
++
++ return EXIT_SUCCESS;
+ }