aboutsummaryrefslogtreecommitdiff
path: root/src/tools/thread
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-04-23 23:58:12 +0000
committerBruce Momjian <bruce@momjian.us>2004-04-23 23:58:12 +0000
commitf6646efa4c4a5a3e5d935842f71e9e26422f8f4e (patch)
tree6988763453499d29d6cdf8792a13bea3ecea6457 /src/tools/thread
parent95178c8d24f426d8b4299affa85460f159da586f (diff)
downloadpostgresql-f6646efa4c4a5a3e5d935842f71e9e26422f8f4e.tar.gz
postgresql-f6646efa4c4a5a3e5d935842f71e9e26422f8f4e.zip
Hook thread_test program run at the end of configure run.
Add test for cross-compiles that they have to run the thread_test program on the target machine.
Diffstat (limited to 'src/tools/thread')
-rw-r--r--src/tools/thread/thread_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/thread/thread_test.c b/src/tools/thread/thread_test.c
index 5c68df68e24..3f59419b7aa 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.22 2004/04/23 22:21:49 momjian Exp $
+ * $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.23 2004/04/23 23:58:12 momjian Exp $
*
* This program tests to see if your standard libc functions use
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -109,7 +109,7 @@ main(int argc, char *argv[])
sched_yield(); /* if this is a portability problem,
* remove it */
- fprintf(stderr, "Your errno is thread-safe.\n");
+ printf("Your errno is thread-safe.\n");
#ifndef HAVE_STRERROR_R
if (strerror_p1 != strerror_p2)