[MINC-users] minc-1.4 on Mac OS X 10.4.1

Steve M. Robbins minc-users@bic.mni.mcgill.ca
Sun Jul 3 18:21:04 2005


On Sun, Jul 03, 2005 at 10:56:55PM +0100, Morgan Hough wrote:

> volume_io/Prog_utils/time.ovolume_io/Prog_utils/time.c: In function
> 'get_clock_ticks_per_second':volume_io/Prog_utils/time.c:59: error:
> 'CLK_TCK' undeclared (first use in this
> function)volume_io/Prog_utils/time.c:59: error: (Each undeclared
> identifier is reported only oncevolume_io/Prog_utils/time.c:59: error:
> for each function it appears in.)make[2]: ***
> [volume_io/Prog_utils/time.lo] Error 1make[1]: *** [all-recursive] Error
> 1make: *** [all] Error 2

Change the line in time.c that reads

  clock_ticks_per_second = (Real) CLK_TCK;

to

  clock_ticks_per_second = (Real) sysconf( _SC_CLK_TCK );


-S