diff options
| author | Bruce Momjian <bruce@momjian.us> | 2002-11-10 00:33:43 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2002-11-10 00:33:43 +0000 |
| commit | ceb4f5ea9c2c6c2bd44d4799ff4a62c40a038894 (patch) | |
| tree | a6f1fe29c6d2b2ede8cef05f21c1771a9681346f /src/include/port/linux.h | |
| parent | 50e726a2c34523c120486a7c679c2b6d49233973 (diff) | |
| download | postgresql-ceb4f5ea9c2c6c2bd44d4799ff4a62c40a038894.tar.gz | |
> > I'll re-check that with the ppc architecture guy here.
>
> ... he is now about to write an inlined version that can go into
> s_lock.h . I'll send the new patch later on...
OK, here it comes:
An inlined version of tas(), that works for both, powerpc and
powerpc64. The patch is against 7.3b5 and passes the test suite on
both architectures.
Reinhard Max
Diffstat (limited to 'src/include/port/linux.h')
| -rw-r--r-- | src/include/port/linux.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/port/linux.h b/src/include/port/linux.h index d4da17da45..283799c14d 100644 --- a/src/include/port/linux.h +++ b/src/include/port/linux.h @@ -14,6 +14,11 @@ typedef unsigned char slock_t; #define HAS_TEST_AND_SET +#elif defined(__powerpc64__) +typedef unsigned long slock_t; + +#define HAS_TEST_AND_SET + #elif defined(__powerpc__) typedef unsigned int slock_t; |
