Module Name: src
Committed By: joerg
Date: Mon Dec 21 13:28:39 UTC 2015
Modified Files:
src/external/cddl/osnet/sys/sys: time.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/cddl/osnet/sys/sys/time.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/sys/sys/time.h
diff -u src/external/cddl/osnet/sys/sys/time.h:1.4 src/external/cddl/osnet/sys/sys/time.h:1.5
--- src/external/cddl/osnet/sys/sys/time.h:1.4 Fri Mar 26 21:33:28 2010
+++ src/external/cddl/osnet/sys/sys/time.h Mon Dec 21 13:28:39 2015
@@ -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 <[email protected]>
@@ -66,6 +66,9 @@ gethrtime(void) {
#else
+int clock_gettime(clockid_t, struct timespec *)
+ __RENAME(__clock_gettime50);
+
static __inline hrtime_t gethrtime(void) {
#ifdef CLOCK_REALTIME
struct timespec ts;