From 1b8bc0158127c4cb5bb4b2bf268c91c4375a49cd Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 3 Apr 2002 12:37:28 +0000 Subject: [PATCH] Using getrusage on SunOS4.x is an adventure. git-svn-id: https://svn.dealii.org/trunk@5633 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/log.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- 2.39.5