Package:postgresql-7.4 Version:7.4.16-1 Serverity:wishlist Tags:patch
Please add m32r tas() ports. Regards, Kazuhiro Inaoka
--- postgresql-7.4.16/src/include/port/linux.h.org 2007-02-16 10:46:31.000000000 +0900 +++ postgresql-7.4.16/src/include/port/linux.h 2007-02-16 10:46:59.000000000 +0900 @@ -56,4 +56,9 @@ typedef struct #define HAS_TEST_AND_SET +#elif defined(__m32r__) +typedef int slock_t; + +#define HAS_TEST_AND_SET + #endif --- postgresql-7.4.16/src/include/storage/s_lock.h.org 2007-02-16 10:36:07.000000000 +0900 +++ postgresql-7.4.16/src/include/storage/s_lock.h 2007-02-16 10:49:57.000000000 +0900 @@ -587,6 +587,11 @@ extern slock_t wc_tas(volatile slock_t * +#if defined (m32r) +#include <sys/tas.h> +#define TAS(lock) tas(lock) + +#endif /* m32r */ #else /* HAS_TEST_AND_SET */ #ifdef HAVE_SPINLOCKS