]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use RUSAGE_SELF instead of 0 in test for getrusage, as the previous is
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 15 Jun 2000 11:49:27 +0000 (11:49 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 15 Jun 2000 11:49:27 +0000 (11:49 +0000)
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
deal.II/configure

index c917c651e2db3f46ad333c1b4d4e77041eb13040..096c7123c0a85ce131e813b4af15a873753e368f 100644 (file)
@@ -99,7 +99,7 @@ AC_DEFUN(DEAL_II_CHECK_GETRUSAGE, dnl
     ],
     [
       rusage *ru;
-      getrusage(0,ru);
+      getrusage(RUSAGE_SELF,ru);
     ],
     [
        AC_MSG_RESULT("yes")
index 56f9ecb3927a710283a75146bbe95726584cd220..3c6a2a5f0d6e40189955ad1bc6789bf3c94bddb8 100755 (executable)
@@ -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

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.