summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
Diffstat (limited to 'exec')
-rw-r--r--exec/elfcore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec/elfcore.c b/exec/elfcore.c
index 449263be..3e4551e5 100644
--- a/exec/elfcore.c
+++ b/exec/elfcore.c
@@ -121,10 +121,12 @@ fetch_thread_fpregset (thread_t thread, prfpregset_t *fpregs)
#endif
+#ifndef TIME_VALUE_TO_TIMESPEC
#define TIME_VALUE_TO_TIMESPEC(tv, ts) { \
(ts)->tv_sec = (tv)->seconds; \
(ts)->tv_nsec = (tv)->microseconds * 1000; \
}
+#endif
#define PAGES_TO_KB(x) ((x) * (vm_page_size / 1024))
#define ENCODE_PCT(f) ((uint16_t) ((f) * 32768.0))