summaryrefslogtreecommitdiff
path: root/src/port/thread.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-04-23 18:15:55 +0000
committerBruce Momjian <bruce@momjian.us>2004-04-23 18:15:55 +0000
commit7a66015e98e890c27e3483a413d5a88927c5b818 (patch)
tree3a58d7f41460697adb2eb1e24ba9e1d1c5dcfb03 /src/port/thread.c
parent77528c9bd7e0203d5670a550947cfa367ac51ad8 (diff)
Add new auto-detection of thread flags.
Allow additional thread flags to be added via port templates. Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new configure script.
Diffstat (limited to 'src/port/thread.c')
-rw-r--r--src/port/thread.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/port/thread.c b/src/port/thread.c
index b814bb8359f..474ef969457 100644
--- a/src/port/thread.c
+++ b/src/port/thread.c
@@ -7,7 +7,7 @@
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/port/thread.c,v 1.19 2004/03/23 02:03:55 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/thread.c,v 1.20 2004/04/23 18:15:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -76,10 +76,6 @@ pqStrerror(int errnum, char *strerrbuf, size_t buflen)
#else
-#if defined(FRONTEND) && defined(ENABLE_THREAD_SAFETY) && !defined(STRERROR_THREADSAFE)
-#error This platform can not create a thread-safe version because strerror is not thread-safe and there is no reentrant version
-#endif
-
/* no strerror_r() available, just use strerror */
StrNCpy(strerrbuf, strerror(errnum), buflen);
@@ -111,10 +107,6 @@ pqGetpwuid(uid_t uid, struct passwd *resultbuf, char *buffer,
#else
-#if defined(FRONTEND) && defined(ENABLE_THREAD_SAFETY) && !defined(GETPWUID_THREADSAFE)
-#error This platform can not create a thread-safe version because getpwuid is not thread-safe and there is no reentrant version
-#endif
-
/* no getpwuid_r() available, just use getpwuid() */
*result = getpwuid(uid);
#endif
@@ -146,10 +138,6 @@ pqGethostbyname(const char *name,
#else
-#if defined(FRONTEND) && defined(ENABLE_THREAD_SAFETY) && !defined(GETHOSTBYNAME_THREADSAFE)
-#error This platform can not create a thread-safe version because getaddrinfo is not thread-safe and there is no reentrant version
-#endif
-
/* no gethostbyname_r(), just use gethostbyname() */
*result = gethostbyname(name);