From 3445a933a5f2c23b697b96948f44fb1b2012dbdb Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 15 Oct 2014 02:43:50 +0200 Subject: [PATCH] Fixed MXE build --- Makefile | 2 +- kernel/log.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f408c40fd..a43f378e1 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS)) LDFLAGS := $(filter-out -rdynamic,$(LDFLAGS)) -s LDLIBS := $(filter-out -lrt,$(LDLIBS)) ABCMKARGS += ARCHFLAGS="-DSIZEOF_VOID_P=4 -DSIZEOF_LONG=4 -DSIZEOF_INT=4 -DWIN32_NO_DLL -x c++ -fpermissive -w" -ABCMKARGS += LIBS="lib/x86/pthreadVC2.lib -s" READLINE=0 +ABCMKARGS += LIBS="lib/x86/pthreadVC2.lib -s" READLINE=0 CC="$(CXX)" CXX="$(CXX)" EXE = .exe else ifneq ($(CONFIG),none) diff --git a/kernel/log.cc b/kernel/log.cc index 2cae6a636..19eb38c73 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -21,7 +21,7 @@ #include "libs/sha1/sha1.h" #include "backends/ilang/ilang_backend.h" -#ifndef _WIN32 +#if !defined(_WIN32) || defined(__MINGW32__) # include #endif @@ -51,7 +51,7 @@ static struct timeval initial_tv = { 0, 0 }; static bool next_print_log = false; static int log_newline_count = 0; -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) // this will get time information and return it in timeval, simulating gettimeofday() int gettimeofday(struct timeval *tv, struct timezone *tz) { -- 2.30.2