pkgsrc/x11/xorg-imake/patches/patch-ah
xtraeme 8077eb5ddd Apply patches from Joerg Sonnerberger to fix some misc problems, like
imake problems with audio/nas and the mouse issues seen on
DragonFlyBSD, this closes PR pkg/30418.
2005-06-07 02:43:26 +00:00

41 lines
1,017 B
Text

$NetBSD: patch-ah,v 1.3 2005/06/07 02:43:26 xtraeme Exp $
--- config/cf/Imake.cf.orig 2004-08-12 06:14:01.000000000 +0900
+++ config/cf/Imake.cf 2004-11-09 20:01:31.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,24 @@
#define KNetBSDArchitecture
#endif
-#ifdef __FreeBSD__
+#ifdef __DragonFly__
+# define MacroIncludeFile <DragonFly.cf>
+# define MacroFile DragonFly.cf
+# undef __DragonFly__
+# define DragonFlyArchitecture
+# 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__