diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-12-19 23:29:15 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-12-19 23:29:15 +0000 |
commit | 85f51dea1cde7e5f4e5d8a5c8d73d9ffb1559a4b (patch) | |
tree | 4dc4859b078e76a7ecdcfadc8046abe973cd5068 /src/tools/thread/thread_test.c | |
parent | 580cae75673d498b2d1e22f2a35cba06f9fba4e9 (diff) | |
download | postgresql-85f51dea1cde7e5f4e5d8a5c8d73d9ffb1559a4b.tar.gz postgresql-85f51dea1cde7e5f4e5d8a5c8d73d9ffb1559a4b.zip |
Supress ecpg thread test if configure didn't enable threads. Fix
tools/thread to run even if configure didn't enable threads because this
test is used before enabling threads for the OS.
Diffstat (limited to 'src/tools/thread/thread_test.c')
-rw-r--r-- | src/tools/thread/thread_test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tools/thread/thread_test.c b/src/tools/thread/thread_test.c index 095961cb874..654bb155f5c 100644 --- a/src/tools/thread/thread_test.c +++ b/src/tools/thread/thread_test.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.5 2003/11/29 19:52:14 pgsql Exp $ + * $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.6 2003/12/19 23:29:15 momjian Exp $ * * This program tests to see if your standard libc functions use * pthread_setspecific()/pthread_getspecific() to be thread-safe. @@ -20,10 +20,7 @@ *------------------------------------------------------------------------- */ - -#ifdef ENABLE_THREAD_SAFETY #include <pthread.h> -#endif #include <unistd.h> #include <stdio.h> #include <stdlib.h> |