Skip to content

Commit aed8260

Browse files
committed
[Issue #213] fix compiling on Windows
1 parent f324899 commit aed8260

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/pg_probackup.h

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
#include "datapagemap.h"
4040
#include "utils/thread.h"
4141

42+
#ifdef WIN32
43+
#define __thread __declspec(thread)
44+
#else
45+
#include <pthread.h>
46+
#endif
47+
4248
/* pgut client variables and full path */
4349
extern const char *PROGRAM_NAME;
4450
extern const char *PROGRAM_NAME_FULL;

src/utils/file.c

-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
#include <unistd.h>
33
#include <sys/stat.h>
44

5-
#ifdef WIN32
6-
#define __thread __declspec(thread)
7-
#else
8-
#include <pthread.h>
9-
#endif
10-
115
#include "pg_probackup.h"
126
#include "file.h"
137
#include "storage/checksum.h"

0 commit comments

Comments
 (0)