1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-31 17:02:12 +03:00

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.
This commit is contained in:
Bruce Momjian
2003-12-19 23:29:15 +00:00
parent 580cae7567
commit 85f51dea1c
3 changed files with 8 additions and 8 deletions

View File

@@ -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>