freebsd-ports/games/q2p/files/patch-unix__sys_unix.c
Alejandro Pulver 192cb8db92 - Fix building with GCC 4.x.
Reported by:	pointyhat
2007-03-22 16:21:18 +00:00

19 lines
368 B
C

--- 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);