Skip to content

Commit

Permalink
attempt to fix mingw build
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWF committed Sep 2, 2016
1 parent ef4640b commit 2a6e747
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/timers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
#include <Shlwapi.h>
#include <VersionHelpers.h>
#include <Windows.h>
#else
#endif

#if !defined(BENCHMARK_OS_WINDOWS) || defined(__GNUC__) // handles mingw
#include <fcntl.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <sys/types.h> // this header must be included before 'sys/sysctl.h' to avoid compilation error on FreeBSD
#include <unistd.h>
#endif
#if defined BENCHMARK_OS_FREEBSD || defined BENCHMARK_OS_MACOSX
#include <sys/sysctl.h>
#endif
Expand All @@ -33,7 +36,6 @@
#include <mach/mach_port.h>
#include <mach/thread_act.h>
#endif
#endif

#include <cerrno>
#include <cstdint>
Expand Down

0 comments on commit 2a6e747

Please sign in to comment.