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 diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp index dbd768a758..60715ff3c8 100644 --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -3,6 +3,7 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include #include #include #include