> > 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 > > this seems bogus to me. > > please only define it if it isn't defined, at least.
I tried the other way around before I posted the my fix to the list: #include_next <sys/time.h> #ifndef CLOCK_REALTIME #define CLOCK_REALTIME 0 #endif But this failed the same way: CLOCK_REALTIME undeclared. Note, ctf uses CLOCK_REALTIME in the same header where it includes sys/time.h. > No comments. > > try posting to the right mailing list. tech-toolchain would > be the right list for this sort of change. Thanks for the hint. Christoph