commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 29/30: Define TIME_VALUE_TO_TIMESPEC only when not defined alread


From: Samuel Thibault
Subject: [hurd] 29/30: Define TIME_VALUE_TO_TIMESPEC only when not defined already
Date: Tue, 22 Sep 2015 21:52:00 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 737f692edbd14df39cc2d91019142bd2df2ab9ea
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 19 15:07:09 2015 +0200

    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.
---
 exec/elfcore.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/exec/elfcore.c b/exec/elfcore.c
index 449263b..3e4551e 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))

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]