summaryrefslogtreecommitdiff
path: root/games/ioquake3/patches/patch-aa
blob: 54c37c0c0d2bc2fad90f2e65bea7c8d44df9e6d6 (plain)
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
28
29
30
31
$NetBSD: patch-aa,v 1.2 2009/03/23 09:57:37 hasso Exp $

--- code/qcommon/q_platform.h.orig	2009-01-12 19:28:35 +0200
+++ code/qcommon/q_platform.h	2009-03-23 11:14:03 +0200
@@ -170,7 +170,7 @@ Foundation, Inc., 51 Franklin St, Fifth 
 
 //=================================================================== BSD ===
 
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
 
 #include <sys/types.h>
 #include <machine/endian.h>
@@ -185,6 +185,8 @@ Foundation, Inc., 51 Franklin St, Fifth 
 #define OS_STRING "openbsd"
 #elif defined(__NetBSD__)
 #define OS_STRING "netbsd"
+#elif defined(__DragonFly__)
+#define OS_STRING "dragonfly"
 #endif
 
 #define ID_INLINE inline
@@ -194,6 +196,8 @@ Foundation, Inc., 51 Franklin St, Fifth 
 #define ARCH_STRING "i386"
 #elif defined __axp__
 #define ARCH_STRING "alpha"
+#elif defined __x86_64__
+#define ARCH_STRING "x86_64"
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN