$NetBSD: patch-ar,v 1.2 2004/03/16 23:59:42 danw Exp $

--- config/imake/imakemdep.h.orig	Sat Mar 13 22:27:36 2004
+++ config/imake/imakemdep.h
@@ -265,10 +265,10 @@ in this Software without prior written a
 #ifdef _CRAY
 #define DEFAULT_CPP "/lib/pcpp"
 #endif
-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__386BSD__) || defined(__OpenBSD__)
 #define DEFAULT_CPP "/usr/libexec/cpp"
 #endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
 #define USE_CC_E
 #endif
 #if defined(__sgi) && defined(__ANSI_CPP__)
@@ -326,7 +326,7 @@ char *cpp_argv[ARGUMENTS] = {
 	"-Uunix",	/* remove unix symbol so that filename unix.c okay */
 #endif
 #endif
-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(MACH) || defined(linux) || defined(__GNU__)
+#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(MACH) || defined(linux) || defined(__GNU__) || defined(__APPLE__)
 # ifdef __i386__
 	"-D__i386__",
 # endif
@@ -336,6 +336,9 @@ char *cpp_argv[ARGUMENTS] = {
 # ifdef __m68k__
 	"-D__m68k__",
 # endif
+# ifdef __ppc__
+	"-D__ppc__",
+# endif
 # ifdef __GNUC__
 	"-traditional",
 # endif
@@ -988,6 +991,12 @@ struct symtab	predefs[] = {
 #endif
 #ifdef __QNXNTO__
 	{"__QNXNTO__", "1"},
+#endif
+#ifdef __ppc__
+	{"__ppc__", "1"},
+#endif
+#ifdef __BIG_ENDIAN__
+	{"__BIG_ENDIAN__", "1"},
 #endif
 	/* add any additional symbols before this line */
 	{NULL, NULL}
