From af97bc1707ce3530670381856d1d0a13224544b6 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 3 May 2007 09:29:16 +0000
Subject: [PATCH] fix for cygwin

---
 contrib/FourierModel/Message.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/FourierModel/Message.cpp b/contrib/FourierModel/Message.cpp
index 2034750c02..0a598674eb 100644
--- a/contrib/FourierModel/Message.cpp
+++ b/contrib/FourierModel/Message.cpp
@@ -1,7 +1,10 @@
 #include <stdlib.h>
 #include <stdio.h>
+
+#if !defined(WIN32) || defined(__CYGWIN__)
 #include <sys/time.h>
 #include <sys/resource.h>
+#endif
 
 #if defined(__APPLE__)
 #define RUSAGE_SELF      0
@@ -84,6 +87,7 @@ void Message::Debug(char *fmt, ...)
 
 void Message::Cpu(char *fmt, ...)
 {
+#if !defined(WIN32) || defined(__CYGWIN__)
   if(_commRank) return;
   if(_verbosity >= 1){
     static struct rusage r;
@@ -101,6 +105,7 @@ void Message::Cpu(char *fmt, ...)
       fprintf(stderr, " (CPU = %gs)\n", s + 1.e-6 * us);
     va_end(args);
   }
+#endif
 }
 
 void Message::ResetProgressMeter(int step)
-- 
GitLab