From: Wolfgang Bangerth Date: Thu, 15 Jun 2000 11:49:27 +0000 (+0000) Subject: Use RUSAGE_SELF instead of 0 in test for getrusage, as the previous is X-Git-Tag: v8.0.0~20388 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4b8a7c22a80fa6a5ba2979cab6b4c704406fd1;p=dealii.git 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 --- 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