diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-09-19 15:07:09 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-09-19 15:07:09 +0200 |
commit | 737f692edbd14df39cc2d91019142bd2df2ab9ea (patch) | |
tree | a75cf358c0eac409123e0e75efb723925cd6a173 | |
parent | 51f60c38c8d3cae7b0d75ba51eab5af47f6b5df7 (diff) |
Define TIME_VALUE_TO_TIMESPEC only when not defined already
* exec/elfcore.c (TIME_VALUE_TO_TIMESPEC) [TIME_VALUE_TO_TIMESPEC]: Do not
redefine macro.
-rw-r--r-- | exec/elfcore.c | 2 |
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)) |