Module Name:    src
Committed By:   cegger
Date:           Fri Mar 26 07:16:12 UTC 2010

Added Files:
        src/tools/compat/sys: time.h

Log Message:
toolchain buildfix on OSX with MKDTRACE=yes:

The host <sys/time.h> doesn't provide CLOCK_REALTIME but ctf uses it.
See http://mail-index.netbsd.org/current-users/2010/03/20/msg012963.html

No comments.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tools/compat/sys/time.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/tools/compat/sys/time.h
diff -u /dev/null src/tools/compat/sys/time.h:1.1
--- /dev/null	Fri Mar 26 07:16:12 2010
+++ src/tools/compat/sys/time.h	Fri Mar 26 07:16:12 2010
@@ -0,0 +1,11 @@
+/*	$NetBSD: time.h,v 1.1 2010/03/26 07:16:12 cegger Exp $	*/
+
+#if (defined(__APPLE__) && defined(__MACH__)) && !defined(__darwin__)
+# define __darwin__     1
+#endif
+
+#ifdef __darwin__
+#define CLOCK_REALTIME	0	/* XXX Keep this in sync with our sys/time.h */
+#endif
+
+#include_next <sys/time.h>

Reply via email to