diff options
author | fanquake <fanquake@gmail.com> | 2022-06-28 16:54:38 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-07-20 13:10:07 +0100 |
commit | fb6db6fb0eb96f96dc331f565acaa8193f285ab2 (patch) | |
tree | 43e3ad9d923c03e15a050c09c4dfccd3d549cd0d /src/compat | |
parent | 203e682d22a89af23dab21418e841e3b54b136d4 (diff) |
compat: document S_I* defines when building for Windows
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 21ec3b59b9..be97c6fe0b 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -60,6 +60,8 @@ typedef unsigned int SOCKET; #endif #endif +// Windows doesn't define S_IRUSR or S_IWUSR. We define both +// here, with the same values as glibc (see stat.h). #ifdef WIN32 #ifndef S_IRUSR #define S_IRUSR 0400 |