mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
MSVC does not provide S_ISDIR, so provide it manually.
This commit is contained in:
parent
f3c7a4c165
commit
70be7d17e4
@ -19,6 +19,9 @@
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
#else
|
||||
#include <sys/stat.h>
|
||||
#include <sys/socket.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user