mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-28 09:33:54 +02:00
[Issue #213] fix compiling on Windows
This commit is contained in:
parent
f3248993c5
commit
aed8260bf8
@ -39,6 +39,12 @@
|
||||
#include "datapagemap.h"
|
||||
#include "utils/thread.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#define __thread __declspec(thread)
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
/* pgut client variables and full path */
|
||||
extern const char *PROGRAM_NAME;
|
||||
extern const char *PROGRAM_NAME_FULL;
|
||||
|
@ -2,12 +2,6 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define __thread __declspec(thread)
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#include "pg_probackup.h"
|
||||
#include "file.h"
|
||||
#include "storage/checksum.h"
|
||||
|
Loading…
Reference in New Issue
Block a user