From d1bf107a8228b043ef78be5b6cc60ca2bb36e2f4 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 15 Jun 2000 11:49:27 +0000 Subject: [PATCH] Use RUSAGE_SELF instead of 0 in test for getrusage, as the previous is in an enum on some Linux systems, while the latter is an int, and the compiler rejects a conversion... git-svn-id: https://svn.dealii.org/trunk@3024 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 2 +- deal.II/configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index c917c651e2..096c7123c0 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -99,7 +99,7 @@ AC_DEFUN(DEAL_II_CHECK_GETRUSAGE, dnl ], [ rusage *ru; - getrusage(0,ru); + getrusage(RUSAGE_SELF,ru); ], [ AC_MSG_RESULT("yes") diff --git a/deal.II/configure b/deal.II/configure index 56f9ecb392..3c6a2a5f0d 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1473,7 +1473,7 @@ cross_compiling=$ac_cv_prog_cxx_cross int main() { rusage *ru; - getrusage(0,ru); + getrusage(RUSAGE_SELF,ru); ; return 0; } EOF -- 2.39.5