]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Include time.h in addition to resource.h, to work around a problem in
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Jan 2002 08:35:56 +0000 (08:35 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Jan 2002 08:35:56 +0000 (08:35 +0000)
Mac OS X.

git-svn-id: https://svn.dealii.org/trunk@5423 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/log.cc
deal.II/doc/news/2001/c-3-2.html

index bc33fbc9ab1ecea9f2e4a0e2395a813c13dfdb78..38f40be60468d96f469f7a5375c91a3c9c9e67a1 100644 (file)
 #include <base/job_identifier.h>
 #include <base/memory_consumption.h>
 
+// include sys/resource.h for rusage(). Mac OS X needs sys/time.h then
+// as well strange), so include that, too.
 #include <sys/resource.h>
+#include <sys/time.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <iostream>
index 12ef8af4649b400516b6f15c7be0220804b2e402..88a3fe15bfc3cba2ec4545068885989d05118099 100644 (file)
@@ -115,6 +115,14 @@ documentation, etc</a>.
 <h3>base</h3>
 
 <ol>
+  <li> <p>
+       Fixed: For Mac OS X, the file <code>base/source/log.cc</code>
+       needed to include <code>sys/time.h</code> in addition to
+       <code>sys/resource.h</code>.
+       <br>
+       (Alexis Herault, WB 2002/01/28)
+       </p>
+
   <li> <p>
        Improved: The cut-off functions <code
        class="class">Functios::CutOffFunctionLinfty</code>, <code

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.