Module Name: src
Committed By: christos
Date: Sun Dec 27 21:42:09 UTC 2015
Modified Files:
src/external/cddl/osnet/sys/sys: time.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 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.5 src/external/cddl/osnet/sys/sys/time.h:1.6
--- src/external/cddl/osnet/sys/sys/time.h:1.5 Mon Dec 21 08:28:39 2015
+++ src/external/cddl/osnet/sys/sys/time.h Sun Dec 27 16:42:09 2015
@@ -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 <[email protected]>
@@ -66,8 +66,13 @@ gethrtime(void) {
#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