File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
9
9
*
10
- * $Id: thread.c,v 1.10 2003/09/29 03:32:05 momjian Exp $
10
+ * $Id: thread.c,v 1.11 2003/10/24 20:48:10 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
14
14
15
15
#include "postgres.h"
16
16
17
+ #if defined(USE_THREADS)
17
18
#include <pthread.h>
19
+ #endif
18
20
#include <sys/types.h>
19
21
#include <pwd.h>
20
22
#include <errno.h>
Original file line number Diff line number Diff line change 6
6
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
7
7
* Portions Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Header: /cvsroot/pgsql/src/tools/thread/Attic/thread_test.c,v 1.2 2003/09/27 16:24:45 momjian Exp $
9
+ * $Header: /cvsroot/pgsql/src/tools/thread/Attic/thread_test.c,v 1.3 2003/10/24 20:48:10 momjian Exp $
10
10
*
11
11
* This program tests to see if your standard libc functions use
12
12
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
21
21
*/
22
22
23
23
24
+ #ifdef USE_THREADS
24
25
#include <pthread.h>
26
+ #endif
25
27
#include <unistd.h>
26
28
#include <stdio.h>
27
29
#include <stdlib.h>
You can’t perform that action at this time.
0 commit comments