diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-03-14 16:03:33 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-03-14 16:03:33 +0000 |
commit | aba8c12f679c2324fa42e718beab8e9d57409102 (patch) | |
tree | ad8d1616fae148f4965555490450fda011b1694c /src/include/port/bsd.h | |
parent | e94fffc1c1c822b16b82dcf7dab8d82ed2625d3d (diff) | |
download | postgresql-aba8c12f679c2324fa42e718beab8e9d57409102.tar.gz postgresql-aba8c12f679c2324fa42e718beab8e9d57409102.zip |
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/port/bsd.h')
-rw-r--r-- | src/include/port/bsd.h | 6 |
1 files changed, 6 insertions, 0 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 |