From aba8c12f679c2324fa42e718beab8e9d57409102 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 14 Mar 1999 16:03:33 +0000 Subject: 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 --- src/include/port/bsd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include/port/bsd.h') 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 -- cgit v1.2.3