Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat/sys toolchain buildfix on OSX with MKDTRACE=yes:



details:   https://anonhg.NetBSD.org/src/rev/1cdd8b03cb92
branches:  trunk
changeset: 753395:1cdd8b03cb92
user:      cegger <cegger%NetBSD.org@localhost>
date:      Fri Mar 26 07:16:12 2010 +0000

description:
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.

diffstat:

 tools/compat/sys/time.h |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 7c169e209505 -r 1cdd8b03cb92 tools/compat/sys/time.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/compat/sys/time.h   Fri Mar 26 07:16:12 2010 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index