1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-08 13:44:32 +02:00

PGPRO-3138: Added #undef open(a, b, c) for Windows build

This commit is contained in:
Victor Spirin 2019-10-29 18:10:31 +03:00
parent 56736b1d2a
commit e0871de361

View File

@ -38,6 +38,11 @@ typedef struct
/* Convert FIO pseudo handle to index in file descriptor array */
#define fio_fileno(f) (((size_t)f - 1) | FIO_PIPE_MARKER)
#if defined(WIN32)
#undef open(a, b, c)
#undef fopen(a, b)
#endif
/* Use specified file descriptors as stdin/stdout for FIO functions */
void fio_redirect(int in, int out, int err)
{