aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2012-01-31 16:46:59 +0800
committerdanfe <danfe@FreeBSD.org>2012-01-31 16:46:59 +0800
commit17e67e70b50a931b43506f184c4482e61f60b48c (patch)
tree2d2f7a988b8e30796a6a8310658f9951e6284ccb /games
parent82c5cbffcdd5a54a47437708c31386b4c88656b9 (diff)
downloadfreebsd-ports-gnome-17e67e70b50a931b43506f184c4482e61f60b48c.tar.gz
freebsd-ports-gnome-17e67e70b50a931b43506f184c4482e61f60b48c.tar.zst
freebsd-ports-gnome-17e67e70b50a931b43506f184c4482e61f60b48c.zip
Fix the build with Clang.
Submitted by: Cyril Roelandt
Diffstat (limited to 'games')
-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;
+ }