Don't reference pthread.h unless we have threads enabled, per Peter.
authorBruce Momjian
Fri, 24 Oct 2003 20:48:10 +0000 (20:48 +0000)
committerBruce Momjian
Fri, 24 Oct 2003 20:48:10 +0000 (20:48 +0000)
src/port/thread.c
src/tools/thread/thread_test.c

index 729c0e8ad3c24549a4025b48c8533117fd0afff6..a37a0ed4fd9a1fb3da14f9b5a924ee6ed5d630f6 100644 (file)
@@ -7,14 +7,16 @@
  *
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  *
- * $Id: thread.c,v 1.10 2003/09/29 03:32:05 momjian Exp $
+ * $Id: thread.c,v 1.11 2003/10/24 20:48:10 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include "postgres.h"
 
+#if defined(USE_THREADS)
 #include 
+#endif
 #include 
 #include 
 #include 
index b5db0e28ecbb951d94daec7b90c82653a675f71a..22d925ebef1075b779e2e1d67bf107402e8641af 100644 (file)
@@ -6,7 +6,7 @@
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Header: /cvsroot/pgsql/src/tools/thread/Attic/thread_test.c,v 1.2 2003/09/27 16:24:45 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/tools/thread/Attic/thread_test.c,v 1.3 2003/10/24 20:48:10 momjian Exp $
  *
  * This program tests to see if your standard libc functions use
  * pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -21,7 +21,9 @@
  */
 
 
+#ifdef USE_THREADS
 #include 
+#endif
 #include 
 #include 
 #include