partial fix for MSYS2 compat (#1468)

This commit is contained in:
Martin Chang 2023-01-18 16:01:56 +08:00 committed by GitHub
parent 554939d7ee
commit 007a6ffbe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,14 +20,18 @@
#include <sstream>
#include <thread>
#include <trantor/utils/Logger.h>
#if !defined(_WIN32) || defined(__MINGW32__)
#if !defined(_WIN32)
#include <unistd.h>
#define os_access access
#else
#include <io.h>
#ifndef __MINGW32__
#define os_access _waccess
#define R_OK 04
#define W_OK 02
#else
#define os_access access
#endif
#endif
#include <drogon/utils/Utilities.h>