summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pumi/phiotimer.cc.darwin.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/pumi/phiotimer.cc.darwin.patch')
-rw-r--r--var/spack/repos/builtin/packages/pumi/phiotimer.cc.darwin.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pumi/phiotimer.cc.darwin.patch b/var/spack/repos/builtin/packages/pumi/phiotimer.cc.darwin.patch
new file mode 100644
index 0000000000..52c6e63fca
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pumi/phiotimer.cc.darwin.patch
@@ -0,0 +1,21 @@
+*** ./phasta/phiotimer.cc 2017-05-03 12:26:25.000000000 -0700
+--- ./phasta/phiotimer.cc.patched 2017-05-03 12:26:11.000000000 -0700
+***************
+*** 56,63 ****
+ }
+ #else
+ void phastaio_time(phastaioTime* t) {
+! int err;
+! err = clock_gettime(CLOCK_MONOTONIC,t);
+ PCU_ALWAYS_ASSERT(!err);
+ }
+ /*return elapsed time in micro seconds*/
+--- 56,63 ----
+ }
+ #else
+ void phastaio_time(phastaioTime* t) {
+! int err=0;
+! /*err = clock_gettime(CLOCK_MONOTONIC,t);*/
+ PCU_ALWAYS_ASSERT(!err);
+ }
+ /*return elapsed time in micro seconds*/