summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian1999-03-14 16:03:33 +0000
committerBruce Momjian1999-03-14 16:03:33 +0000
commitaba8c12f679c2324fa42e718beab8e9d57409102 (patch)
treead8d1616fae148f4965555490450fda011b1694c /src/include
parente94fffc1c1c822b16b82dcf7dab8d82ed2625d3d (diff)
We have tested the patches on three platforms:
NetBSD/macppc LinuxPPC FreeBSD 2.2.6-RELEASE All of them seem happy with the regression test. Note that, however, compiling with optimization enabled on NetBSD/macppc causes an initdb failure (other two platforms are ok). After checking the asm code, we are suspecting that might be a compiler(egcs) bug. Tatsuo Ishii
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port/bsd.h6
-rw-r--r--src/include/port/linux.h4
-rw-r--r--src/include/utils/dt.h6
3 files changed, 11 insertions, 5 deletions
diff --git a/src/include/port/bsd.h b/src/include/port/bsd.h
index 4e754e77dec..cfd0d2811bd 100644
--- a/src/include/port/bsd.h
+++ b/src/include/port/bsd.h
@@ -24,7 +24,13 @@
#define HAS_TEST_AND_SET
#endif
+#if defined(__powerpc__)
+#define HAS_TEST_AND_SET
+typedef unsigned int slock_t;
+#endif
#if defined(__mips__)
/* # undef HAS_TEST_AND_SET */
#endif
+#if !defined(__powerpc__)
typedef unsigned char slock_t;
+#endif
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 81169b2c0c9..da57b2b9a3d 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -8,7 +8,7 @@
#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
-#if defined(PPC)
+#if defined(__powerpc__)
typedef unsigned int slock_t;
#elif defined(__alpha)
@@ -34,6 +34,6 @@ typedef unsigned char slock_t;
/* #define HAVE_SIGSETJMP 1 */
#endif
-#if defined(PPC)
+#if defined(__powerpc__)
#undef HAVE_INT_TIMEZONE
#endif
diff --git a/src/include/utils/dt.h b/src/include/utils/dt.h
index ff3ae468f58..024acb4c63a 100644
--- a/src/include/utils/dt.h
+++ b/src/include/utils/dt.h
@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dt.h,v 1.37 1999/03/06 22:58:11 tgl Exp $
+ * $Id: dt.h,v 1.38 1999/03/14 16:03:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -228,7 +228,7 @@ typedef struct
#define DATETIME_IS_NOEND(j) (j == DT_NOEND)
#define DATETIME_CURRENT(j) {j = DT_CURRENT;}
-#if defined(linux) && defined(PPC)
+#if defined(linux) && defined(__powerpc__)
extern int datetime_is_current(double j);
#define DATETIME_IS_CURRENT(j) datetime_is_current(j)
@@ -237,7 +237,7 @@ extern int datetime_is_current(double j);
#endif
#define DATETIME_EPOCH(j) {j = DT_EPOCH;}
-#if defined(linux) && defined(PPC)
+#if defined(linux) && defined(__powerpc__)
extern int datetime_is_epoch(double j);
#define DATETIME_IS_EPOCH(j) datetime_is_epoch(j)