diff options
| author | Bruce Momjian | 2004-04-05 02:22:14 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2004-04-05 02:22:14 +0000 |
| commit | 53ddde5b745c073e6090fdf0b9a46102b2aa12af (patch) | |
| tree | 2da74bfb00fe4e213ad25414831d0dad844f2654 /src/tools | |
| parent | 31f48c9afe4843b76a8f515dd32046214392ebae (diff) | |
Add volatile to thread-specific thread variables.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/thread/thread_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/thread/thread_test.c b/src/tools/thread/thread_test.c index b8d26e98ce8..2b79ad9b44e 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.11 2004/04/05 01:27:58 momjian Exp $ + * $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.12 2004/04/05 02:22:14 momjian Exp $ * * This program tests to see if your standard libc functions use * pthread_setspecific()/pthread_getspecific() to be thread-safe. @@ -37,8 +37,8 @@ void func_call_2(void); char myhostname[MAXHOSTNAMELEN]; -int errno1_set = 0; -int errno2_set = 0; +volatile int errno1_set = 0; +volatile int errno2_set = 0; char *strerror_p1; char *strerror_p2; |
