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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
$NetBSD: patch-ar,v 1.3 2005/06/27 14:08:15 wiz Exp $
--- config/imake/imakemdep.h.orig 2005-05-16 17:00:00.000000000 +0200
+++ config/imake/imakemdep.h 2005-05-16 17:04:32.000000000 +0200
@@ -265,10 +265,10 @@
#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__) || defined(__DragonFly__)
#define USE_CC_E
#endif
#if defined(__sgi) && defined(__ANSI_CPP__)
@@ -326,7 +326,7 @@
"-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__) || defined(__DragonFly__)
# ifdef __i386__
"-D__i386__",
# endif
@@ -336,6 +336,9 @@
# ifdef __m68k__
"-D__m68k__",
# endif
+# ifdef __ppc__
+ "-D__ppc__",
+# endif
# ifdef __GNUC__
"-traditional",
# endif
@@ -662,14 +665,14 @@
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
# define DEFAULT_OS_TEENY_REV "v %[0-9]"
/* # define DEFAULT_OS_NAME "srm %[^\n]" */ /* Not useful on ISC */
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
/* BSD/OS too? */
/* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
# define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
# define DEFAULT_OS_NAME "srm %[^\n]"
-# if defined(__FreeBSD__)
+# if defined(__FreeBSD__) || defined(__DragonFly__)
/* Use an alternate way to find the teeny version for -STABLE, -SNAP versions */
# define DEFAULT_OS_TEENY_REV_FROB(buf, size) \
do { \
@@ -968,7 +971,9 @@
#ifdef __sgi
{"__sgi", "1"},
#endif
-#ifdef __FreeBSD__
+#ifdef __DragonFly__
+ {"__DragonFly__", "1"},
+#elif defineD(__FreeBSD__)
{"__FreeBSD__", "1"},
#endif
#ifdef __OpenBSD__
@@ -989,6 +994,12 @@
#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}
};
|