euler-glibc-2.4-gentoo.patch 349 B

1234567891011121314
  1. # patch to fix missing CLK_TCK in glibc 2.4
  2. --- src/main.c. 2006-04-04 15:05:34.000000000 +0200
  3. +++ src/main.c 2006-04-04 15:09:20.000000000 +0200
  4. @@ -439,7 +439,7 @@
  5. gettimer(TIMEOFDAY,&t);
  6. return (t.tv_sec+t.tv_nsec/1000000000.0);
  7. #else
  8. - return ((double)(times(NULL)))/CLK_TCK;
  9. + return ((double)(times(NULL)))/CLOCKS_PER_SEC;
  10. #endif
  11. }