From: wolf Date: Wed, 3 Apr 2002 12:37:28 +0000 (+0000) Subject: Using getrusage on SunOS4.x is an adventure. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b8bc0158127c4cb5bb4b2bf268c91c4375a49cd;p=dealii-svn.git Using getrusage on SunOS4.x is an adventure. git-svn-id: https://svn.dealii.org/trunk@5633 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/log.cc b/deal.II/base/source/log.cc index 3cfbb8f510..0a97e9ce39 100644 --- a/deal.II/base/source/log.cc +++ b/deal.II/base/source/log.cc @@ -32,6 +32,16 @@ # include #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;