summaryrefslogtreecommitdiff
path: root/x11/xorg-libs/patches/patch-aw
blob: 73594c5b619f23c26251a54f6391aeadb921660e (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
32
33
34
35
36
37
38
39
40
$NetBSD: patch-aw,v 1.1 2004/11/15 11:15:49 hira Exp $

--- config/cf/Imake.cf.orig	2004-08-12 06:14:01.000000000 +0900
+++ config/cf/Imake.cf	2004-11-09 03:52:53.000000000 +0900
@@ -246,6 +246,10 @@
 #   define PpcArchitecture
 #   undef __powerpc__
 # endif
+# ifdef __x86_64__
+#  define AMD64Architecture
+#  undef __x86_64__
+# endif
 #endif /* NetBSD */
 
 /* Systems based on kernel of NetBSD */
@@ -253,7 +257,23 @@
 #define KNetBSDArchitecture
 #endif
 
-#ifdef __FreeBSD__
+#ifdef __DragonFly__
+# define MacroIncludeFile <DragonFly.cf>
+# define MacroFile DragonFly.cf
+# undef __DragonFly__
+# define FreeBSDArchitecture
+# define KFreeBSDArchitecture
+# ifdef __i386__
+#  define i386BsdArchitecture
+#  define i386Architecture
+#  undef i386
+# endif
+# ifdef __amd64__
+#  define AMD64Architecture
+#  undef __amd64__
+#  undef __x86_64__
+# endif
+#elif defined __FreeBSD__
 # define MacroIncludeFile <FreeBSD.cf>
 # define MacroFile FreeBSD.cf
 # undef __FreeBSD__