Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/sys/sys We don't need to declare clock_g...



details:   https://anonhg.NetBSD.org/src/rev/ceaa3b30e24d
branches:  trunk
changeset: 342563:ceaa3b30e24d
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 27 21:42:09 2015 +0000

description:
We don't need to declare clock_gettime if we don't have it and we don't need
to __RENAME if we are not NetBSD.

diffstat:

 external/cddl/osnet/sys/sys/time.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 58ddfc4e8d1a -r ceaa3b30e24d external/cddl/osnet/sys/sys/time.h
--- a/external/cddl/osnet/sys/sys/time.h        Sun Dec 27 21:40:21 2015 +0000
+++ b/external/cddl/osnet/sys/sys/time.h        Sun Dec 27 21:42:09 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time.h,v 1.5 2015/12/21 13:28:39 joerg Exp $   */
+/*     $NetBSD: time.h,v 1.6 2015/12/27 21:42:09 christos Exp $        */
 
 /*-
  * Copyright (c) 2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -66,8 +66,13 @@
 
 #else
 
+#ifdef CLOCK_REALTIME
 int clock_gettime(clockid_t, struct timespec *)
-    __RENAME(__clock_gettime50);
+#ifdef __RENAME
+    __RENAME(__clock_gettime50)
+#endif
+;
+#endif
 
 static __inline hrtime_t gethrtime(void) {
 #ifdef CLOCK_REALTIME



Home | Main Index | Thread Index | Old Index