1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

tas() support for Renesas' M32R processor. Kazuhiro Inaoka

This commit is contained in:
Tom Lane
2007-05-04 15:20:52 +00:00
parent 774de1d90a
commit c7464720a3
4 changed files with 23 additions and 4 deletions

View File

@ -495,6 +495,9 @@
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/tas.h> header file. */
#undef HAVE_SYS_TAS_H
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
@ -644,6 +647,9 @@
/* Define to 1 to build with XML support. (--with-libxml) */
#undef USE_LIBXML
/* Define to 1 to build with XSLT support. (--with-libxslt) */
#undef USE_LIBXSLT
/* Define to select named POSIX semaphores. */
#undef USE_NAMED_POSIX_SEMAPHORES

View File

@ -66,7 +66,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.158 2007/01/05 22:19:58 momjian Exp $
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.159 2007/05/04 15:20:52 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -556,6 +556,18 @@ do \
#endif /* __mips__ && !__sgi */
#if defined(__m32r__) && defined(HAVE_SYS_TAS_H) /* Renesas' M32R */
#define HAS_TEST_AND_SET
#include <sys/tas.h>
typedef int slock_t;
#define TAS(lock) tas(lock)
#endif /* __m32r__ */
/* These live in s_lock.c, but only for gcc */