diff options
author | dEBRUYNE-1 <dEBRUYNE-1@users.noreply.github.com> | 2017-12-23 15:04:20 +0100 |
---|---|---|
committer | dEBRUYNE-1 <dEBRUYNE-1@users.noreply.github.com> | 2017-12-23 15:27:30 +0100 |
commit | 2018cf74a65b99cf5494cbbb7f2363a56affbc1f (patch) | |
tree | 3345697363bedbf80563bd50585e4b9fba240f67 | |
parent | Merge pull request #2961 (diff) | |
download | monero-2018cf74a65b99cf5494cbbb7f2363a56affbc1f.tar.xz |
Fix Windows build
Fix no new line
-rw-r--r-- | contrib/epee/include/misc_os_dependent.h | 4 | ||||
-rw-r--r-- | external/easylogging++/ea_config.h | 1 | ||||
-rw-r--r-- | src/daemonizer/windows_service.cpp | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/contrib/epee/include/misc_os_dependent.h b/contrib/epee/include/misc_os_dependent.h index 81cecf714..99690b301 100644 --- a/contrib/epee/include/misc_os_dependent.h +++ b/contrib/epee/include/misc_os_dependent.h @@ -23,6 +23,10 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // +#ifdef _WIN32 +#include <Winsock2.h> +#endif + #ifdef WIN32 #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN diff --git a/external/easylogging++/ea_config.h b/external/easylogging++/ea_config.h index 2524d3477..6215e67de 100644 --- a/external/easylogging++/ea_config.h +++ b/external/easylogging++/ea_config.h @@ -8,3 +8,4 @@ #endif #define ELPP_DISABLE_DEFAULT_CRASH_HANDLING #define ELPP_NO_CHECK_MACROS +#define ELPP_WINSOCK2 diff --git a/src/daemonizer/windows_service.cpp b/src/daemonizer/windows_service.cpp index d540f5bf8..9b8e46615 100644 --- a/src/daemonizer/windows_service.cpp +++ b/src/daemonizer/windows_service.cpp @@ -26,6 +26,9 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include <boost/chrono/chrono.hpp> +#include <boost/thread/thread.hpp> + #undef UNICODE #undef _UNICODE |