Skip to content

Commit c746472

Browse files
committed
tas() support for Renesas' M32R processor. Kazuhiro Inaoka
1 parent 774de1d commit c746472

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7943,7 +7943,8 @@ done
79437943

79447944

79457945

7946-
for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7946+
7947+
for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
79477948
do
79487949
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
79497950
if eval "test \"\${$as_ac_Header+set}\" = set"; then

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.513 2007/04/21 18:26:44 petere Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.514 2007/05/04 15:20:52 tgl Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -794,7 +794,7 @@ fi
794794
##
795795

796796
dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
797-
AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
797+
AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
798798

799799
# At least on IRIX, cpp test for netinet/tcp.h will fail unless
800800
# netinet/in.h is included first.

src/include/pg_config.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@
495495
/* Define to 1 if you have the <sys/stat.h> header file. */
496496
#undef HAVE_SYS_STAT_H
497497

498+
/* Define to 1 if you have the <sys/tas.h> header file. */
499+
#undef HAVE_SYS_TAS_H
500+
498501
/* Define to 1 if you have the <sys/time.h> header file. */
499502
#undef HAVE_SYS_TIME_H
500503

@@ -644,6 +647,9 @@
644647
/* Define to 1 to build with XML support. (--with-libxml) */
645648
#undef USE_LIBXML
646649

650+
/* Define to 1 to build with XSLT support. (--with-libxslt) */
651+
#undef USE_LIBXSLT
652+
647653
/* Define to select named POSIX semaphores. */
648654
#undef USE_NAMED_POSIX_SEMAPHORES
649655

src/include/storage/s_lock.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2007, 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.158 2007/01/05 22:19:58 momjian Exp $
69+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.159 2007/05/04 15:20:52 tgl Exp $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -556,6 +556,18 @@ do \
556556
#endif /* __mips__ && !__sgi */
557557

558558

559+
#if defined(__m32r__) && defined(HAVE_SYS_TAS_H) /* Renesas' M32R */
560+
#define HAS_TEST_AND_SET
561+
562+
#include <sys/tas.h>
563+
564+
typedef int slock_t;
565+
566+
#define TAS(lock) tas(lock)
567+
568+
#endif /* __m32r__ */
569+
570+
559571
/* These live in s_lock.c, but only for gcc */
560572

561573

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy