CLOCK_REALTIME undefined on my system

Xin LI delphij at delphij.net
Fri May 9 18:33:31 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve Franks wrote:
| The manpage
(http://www.freebsd.org/cgi/man.cgi?query=clock_gettime&sektion=2&apropos=0&manpath=FreeBSD+7.0-RELEASE)
| for clock_gettime() specifies the correct header as <time.h>, which I
| am using, and I don't see any errors on clock_gettime(), but the param
| I need, listed in the manpage, CLOCK_REALTIME is undefined.  Any ideas
| how this could be?  I've recently cvsup'd standard-supfile, so you'd
| think I'm up to date...
|
| I'm also getting an implicit declaration of isnormal(), and math.h is
| clearly included...

I think with

#define _POSIX_C_SOURCE 199309L

These will be masked...  Could you please try if changing it to 200112
would work?

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkgkmPIACgkQi+vbBBjt66D/bgCfd4jBteEBrPdQT272TcxY0bLF
LwIAoIkcfwxlCBog7+1tyJr84Uns6jbJ
=AS7o
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list