Source-Changes-D archive

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

Re: CVS commit: src/tools/compat/sys



-------- Original-Nachricht --------
> Datum: Sat, 27 Mar 2010 03:03:06 +1100
> Von: matthew green <mrg%eterna.com.au@localhost>
> An: "Christoph Egger" <Christoph_Egger%gmx.de@localhost>
> CC: source-changes-d%NetBSD.org@localhost
> Betreff: re: CVS commit: src/tools/compat/sys

> 
>    
>    >    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.
> 
> hmmm, could you post the error?  thanks.

<copy & paste from above url>
tools/ctfconvert/../../external/cddl/osnet/sys/sys/time.h:71: error:
'CLOCK_REALTIME' undeclared (first use in this function)
</copy & paste>
   
>    Note, ctf uses CLOCK_REALTIME in the same header where it
>    includes sys/time.h.
> 
> BTW, i'm not sure that using #include_next is OK (it's gcc
> specific) and i don't see it used elsewhere in a quick look.

If you want to see that go away then ctf needs to be fixed first
(which implies to wait for darran@ to be back from vacation
in first place :))
See line 34 in ctf's sys/time.h (above file where error occured).
 
Christoph


Home | Main Index | Thread Index | Old Index