aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-04-19 23:11:15 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-04-19 23:11:15 +0000
commitcc7eab38ddacd7f217340146ebba24520e09a2b8 (patch)
tree572328278f0a9140b196008e35ebc5f5f9dc9e14 /src
parent19fe9a904a679536e9c49eb9a5a32dde7e38df7c (diff)
downloadpostgresql-cc7eab38ddacd7f217340146ebba24520e09a2b8.tar.gz
postgresql-cc7eab38ddacd7f217340146ebba24520e09a2b8.zip
Recognize __ppc64__, which seems to be Apple's spelling of the predefined
symbol for PPC64 hardware. I hadn't known that Apple supported PPC64 at all, but darn if there aren't 64-bit variant libraries in OS X as well as support in their gcc.
Diffstat (limited to 'src')
-rw-r--r--src/include/storage/s_lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
index 39b80d77b6a..6305016f25a 100644
--- a/src/include/storage/s_lock.h
+++ b/src/include/storage/s_lock.h
@@ -66,7 +66,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.148 2006/03/05 15:59:00 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.149 2006/04/19 23:11:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -323,10 +323,10 @@ tas(volatile slock_t *lock)
/* PowerPC */
-#if defined(__ppc__) || defined(__powerpc__) || defined(__powerpc64__)
+#if defined(__ppc__) || defined(__powerpc__) || defined(__ppc64__) || defined(__powerpc64__)
#define HAS_TEST_AND_SET
-#if defined(__powerpc64__)
+#if defined(__ppc64__) || defined(__powerpc64__)
typedef unsigned long slock_t;
#else
typedef unsigned int slock_t;