]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Using getrusage on SunOS4.x is an adventure.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Apr 2002 12:37:28 +0000 (12:37 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Apr 2002 12:37:28 +0000 (12:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@5633 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/log.cc

index 3cfbb8f5103b76ce8b02f1386227ccf31abdfc71..0a97e9ce3929aca2f6ce33f411c86b1bc097c803 100644 (file)
 #  include <strstream>
 #endif
 
+
+// on SunOS 4.x, getrusage is stated in the man pages and exists, but
+// is not declared in resource.h. declare it ourselves
+#ifdef NO_HAVE_GETRUSAGE
+extern "C" { 
+  int getrusage(int who, struct rusage* ru);
+}
+#endif
+
+
 LogStream deallog;
 
 

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.