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/1ca3d6c7ab49
branches:  trunk
changeset: 812565:1ca3d6c7ab49
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 cb5045257920 -r 1ca3d6c7ab49 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