diff options
Diffstat (limited to 'sci-chemistry/gamess/files/gamess-glibc-2.4-gentoo.patch')
-rw-r--r-- | sci-chemistry/gamess/files/gamess-glibc-2.4-gentoo.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sci-chemistry/gamess/files/gamess-glibc-2.4-gentoo.patch b/sci-chemistry/gamess/files/gamess-glibc-2.4-gentoo.patch new file mode 100644 index 000000000000..5673eeaae729 --- /dev/null +++ b/sci-chemistry/gamess/files/gamess-glibc-2.4-gentoo.patch @@ -0,0 +1,42 @@ +diff -Naur gamess/source/zunix.c gamess-new/source/zunix.c +--- gamess/source/zunix.c 2005-12-20 22:35:35.000000000 -0600 ++++ gamess-new/source/zunix.c 2006-03-27 15:55:13.000000000 -0600 +@@ -244,9 +244,9 @@ + double etime(float *a) + { double elapsed; + struct tms buf; +- elapsed= (float) times(&buf)/ (float) CLK_TCK; +- a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLK_TCK; +- a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLK_TCK; ++ elapsed= (float) times(&buf)/ (float) CLOCKS_PER_SEC; ++ a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLOCKS_PER_SEC; ++ a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLOCKS_PER_SEC; + return(elapsed); } + + /* +@@ -301,9 +301,9 @@ + double etime(float *a) + { double elapsed; + struct tms buf; +- elapsed= (float) times(&buf)/ (float) CLK_TCK; +- a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLK_TCK; +- a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLK_TCK; ++ elapsed= (float) times(&buf)/ (float) CLOCKS_PER_SEC; ++ a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLOCKS_PER_SEC; ++ a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLOCKS_PER_SEC; + return(elapsed); } + + #endif +@@ -343,9 +343,9 @@ + double etime_(float *a) + { double elapsed; + struct tms buf; +- elapsed= (float) times(&buf)/CLK_TCK; +- a[0]= (float) (buf.tms_utime + buf.tms_cutime)/CLK_TCK; +- a[1]= (float) (buf.tms_stime + buf.tms_cstime)/CLK_TCK; ++ elapsed= (float) times(&buf)/CLOCKS_PER_SEC; ++ a[0]= (float) (buf.tms_utime + buf.tms_cutime)/CLOCKS_PER_SEC; ++ a[1]= (float) (buf.tms_stime + buf.tms_cstime)/CLOCKS_PER_SEC; + return(elapsed); } + + /* |