MDEV-8743: O_CLOEXEC/SOCK_CLOEXEC defines for non-unix compatibility

From 0f4478105f
This commit is contained in:
Nirbhay Choubey 2018-03-02 11:17:35 +11:00 committed by Daniel Black
parent 4ec7b84077
commit c54c490c59

View file

@ -578,6 +578,12 @@ typedef SOCKET_SIZE_TYPE size_socket;
#ifndef O_NOFOLLOW
#define O_NOFOLLOW 0
#endif
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
#ifndef SOCK_CLOEXEC
#define SOCK_CLOEXEC 0
#endif
/* additional file share flags for win32 */
#ifdef __WIN__