Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cc7eab3

Browse files
committed
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.
1 parent 19fe9a9 commit cc7eab3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/storage/s_lock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
6767
* Portions Copyright (c) 1994, Regents of the University of California
6868
*
69-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.148 2006/03/05 15:59:00 momjian Exp $
69+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.149 2006/04/19 23:11:15 tgl Exp $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -323,10 +323,10 @@ tas(volatile slock_t *lock)
323323

324324

325325
/* PowerPC */
326-
#if defined(__ppc__) || defined(__powerpc__) || defined(__powerpc64__)
326+
#if defined(__ppc__) || defined(__powerpc__) || defined(__ppc64__) || defined(__powerpc64__)
327327
#define HAS_TEST_AND_SET
328328

329-
#if defined(__powerpc64__)
329+
#if defined(__ppc64__) || defined(__powerpc64__)
330330
typedef unsigned long slock_t;
331331
#else
332332
typedef unsigned int slock_t;

0 commit comments

Comments
 (0)