From 522ebcd2d6d164eedbf1851ce4b241dc70e74520 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Mon, 5 Sep 2011 17:00:37 +0200 Subject: [PATCH] Windows port: cmph_time.h includes sys/resource.h which is not available on Windows. So only include it when WIN32 is not defined. https://bugzilla.gnome.org/show_bug.cgi?id=620566 --- cmph/cmph_time.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmph/cmph_time.h b/cmph/cmph_time.h index d8018090c..c03558fb6 100644 --- a/cmph/cmph_time.h +++ b/cmph/cmph_time.h @@ -6,12 +6,10 @@ #undef ELAPSED_TIME_IN_uSECONDS #endif -#ifdef WIN32 -// include headers to use gettimeofday -#else - #ifdef __GNUC__ +#ifdef __GNUC__ #include - #include + #ifndef WIN32 + #include #endif #endif