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 Our time.h defines clock_gettime...



details:   https://anonhg.NetBSD.org/src/rev/7e89e57142f1
branches:  trunk
changeset: 342423:7e89e57142f1
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Dec 21 13:28:39 2015 +0000

description:
Our time.h defines clock_gettime with assembler name after including
sys/time.h. The Solaris compat code in sys/time.h wants to use it in an
inline function, but misses a prototype (and the relabeling). As stopgap
for getting consistent defines of clock_gettime duplicate the prototype
here.

diffstat:

 external/cddl/osnet/sys/sys/time.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 4bd98c7e31fc -r 7e89e57142f1 external/cddl/osnet/sys/sys/time.h
--- a/external/cddl/osnet/sys/sys/time.h        Mon Dec 21 13:15:04 2015 +0000
+++ b/external/cddl/osnet/sys/sys/time.h        Mon Dec 21 13:28:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time.h,v 1.4 2010/03/26 21:33:28 christos Exp $        */
+/*     $NetBSD: time.h,v 1.5 2015/12/21 13:28:39 joerg Exp $   */
 
 /*-
  * Copyright (c) 2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -66,6 +66,9 @@
 
 #else
 
+int clock_gettime(clockid_t, struct timespec *)
+    __RENAME(__clock_gettime50);
+
 static __inline hrtime_t gethrtime(void) {
 #ifdef CLOCK_REALTIME
        struct timespec ts;



Home | Main Index | Thread Index | Old Index