mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 01:38:07 -04:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
$NetBSD: patch-ag,v 1.4 2013/07/17 06:13:22 dholland Exp $
|
|
|
|
Add __ppc64__ and __arm__
|
|
Recognize __sun as well as sun
|
|
|
|
--- Imake.cf.orig 2010-09-03 23:19:43.000000000 +0000
|
|
+++ Imake.cf
|
|
@@ -25,9 +25,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v
|
|
# define MacroIncludeFile <darwin.cf>
|
|
# define MacroFile darwin.cf
|
|
# define DarwinArchitecture
|
|
-# ifdef __ppc__
|
|
+# if defined __ppc__ || defined __ppc64__
|
|
# define PpcDarwinArchitecture
|
|
# undef __ppc__
|
|
+# undef __ppc64__
|
|
# endif
|
|
# ifdef __i386__
|
|
# define i386DarwinArchitecture
|
|
@@ -238,8 +239,9 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v
|
|
# ifdef mc68000
|
|
# define Mc68020Architecture
|
|
# endif
|
|
-# ifdef __arm32__
|
|
+# if defined(__arm__) || defined(__arm32__)
|
|
# define Arm32Architecture
|
|
+# undef __arm__
|
|
# undef __arm32__
|
|
# endif
|
|
# ifdef __vax__
|
|
@@ -250,6 +252,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v
|
|
# define PpcArchitecture
|
|
# undef __powerpc__
|
|
# endif
|
|
+# ifdef __x86_64__
|
|
+# define AMD64Architecture
|
|
+# undef __x86_64__
|
|
+# endif
|
|
#endif /* NetBSD */
|
|
|
|
/* Systems based on kernel of NetBSD */
|
|
@@ -347,7 +353,7 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v
|
|
# endif
|
|
#endif /* AMOEBA */
|
|
|
|
-#ifdef sun
|
|
+#if defined(sun) || defined(__sun)
|
|
# define MacroIncludeFile <sun.cf>
|
|
# define MacroFile sun.cf
|
|
# ifdef SVR4
|