aboutsummaryrefslogtreecommitdiffstats
path: root/games/q2p
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2007-03-23 00:21:18 +0800
committeralepulver <alepulver@FreeBSD.org>2007-03-23 00:21:18 +0800
commit4a5da1ccae711200d73681de986c09612a653518 (patch)
tree438117f44e4d728f081f16f2b788ed114596296f /games/q2p
parent1dd6210f86a84815a6c1c812face699760780736 (diff)
downloadfreebsd-ports-gnome-4a5da1ccae711200d73681de986c09612a653518.tar.gz
freebsd-ports-gnome-4a5da1ccae711200d73681de986c09612a653518.tar.zst
freebsd-ports-gnome-4a5da1ccae711200d73681de986c09612a653518.zip
- Fix building with GCC 4.x.
Reported by: pointyhat
Diffstat (limited to 'games/q2p')
-rw-r--r--games/q2p/files/patch-client__cl_scrn.c21
-rw-r--r--games/q2p/files/patch-unix__sys_unix.c18
2 files changed, 39 insertions, 0 deletions
diff --git a/games/q2p/files/patch-client__cl_scrn.c b/games/q2p/files/patch-client__cl_scrn.c
new file mode 100644
index 000000000000..7b03b2ddda52
--- /dev/null
+++ b/games/q2p/files/patch-client__cl_scrn.c
@@ -0,0 +1,21 @@
+--- client/cl_scrn.c.orig Sun Dec 31 14:01:34 2006
++++ client/cl_scrn.c Thu Mar 22 10:20:16 2007
+@@ -34,6 +34,10 @@
+
+ #include "client.h"
+
++#ifdef __unix__
++#include <sys/utsname.h>
++#endif
++
+ float scr_con_current; // aproaches scr_conlines at scr_conspeed
+ float scr_conlines; // 0.0 to 1.0 lines of console to display
+ qboolean scr_initialized; // ready to draw
+@@ -471,7 +475,6 @@
+ player_state_t *player_speed;
+ vec3_t hvel;
+ #if defined (__unix__)
+-#include <sys/utsname.h>
+ struct utsname info;
+ uname (&info);
+ #endif
diff --git a/games/q2p/files/patch-unix__sys_unix.c b/games/q2p/files/patch-unix__sys_unix.c
new file mode 100644
index 000000000000..34d02e0d220f
--- /dev/null
+++ b/games/q2p/files/patch-unix__sys_unix.c
@@ -0,0 +1,18 @@
+--- unix/sys_unix.c.orig Sun Dec 31 14:01:34 2006
++++ unix/sys_unix.c Thu Mar 22 10:20:55 2007
+@@ -35,6 +35,7 @@
+ #include <sys/wait.h>
+ #include <sys/mman.h>
+ #include <errno.h>
++#include <sys/utsname.h>
+
+ #if defined (__linux__)
+ #include <mntent.h>
+@@ -543,7 +544,6 @@
+
+ void OS_Info(void)
+ {
+-#include <sys/utsname.h>
+ struct utsname info;
+
+ uname (&info);