1
0
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:
Grigory Smolkin 2020-06-22 18:39:01 +03:00
parent f3248993c5
commit aed8260bf8
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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"