mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-29 18:27:43 +08:00
partial fix for MSYS2 compat (#1468)
This commit is contained in:
parent
554939d7ee
commit
007a6ffbe3
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user