Al 24/02/11 08:22, En/na Graeme Geldenhuys ha escrit: > Op 2011-02-23 18:56, Luca Olivetti het geskryf: >> BTW: in which unit are clock_gettime and related constants defined? > > libc (FPC wrapper to the libc library) > > ...more specifically... > > packages/libc/src/timeh.inc
Two things: 1) in fpc 2.4.2 CLOCK_MONOTONIC isn't defined (only CLOCK_REALIME) and 2) I couldn't find clock_gettime before because I relied on lazarus code completion. It turns out that lazarus doesn't uses the correct source for libc but the one for netware (I think), i.e. it uses /usr/share/fpcsrc/fpc-2.4.2/rtl/netwlibc/libc.pp instead of /usr/share/fpcsrc/fpc-2.4.2/packages/libc/src/libc.pp (I have the fpc source directory defined as /usr/share/fpcsrc/fpc-2.4.2) Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
