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:
parent
56736b1d2a
commit
e0871de361
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user