Skip to content

Commit fb6db6f

Browse files
committed
compat: document S_I* defines when building for Windows
1 parent 203e682 commit fb6db6f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/compat/compat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ typedef unsigned int SOCKET;
6060
#endif
6161
#endif
6262

63+
// Windows doesn't define S_IRUSR or S_IWUSR. We define both
64+
// here, with the same values as glibc (see stat.h).
6365
#ifdef WIN32
6466
#ifndef S_IRUSR
6567
#define S_IRUSR 0400

src/wallet/bdb.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6+
#include <compat/compat.h>
67
#include <fs.h>
78
#include <wallet/bdb.h>
89
#include <wallet/db.h>

0 commit comments

Comments
 (0)