On Tue, Mar 12, 2002 at 04:59:40PM -0800, Alfred Perlstein wrote: > * Craig Rodrigues <[EMAIL PROTECTED]> [020312 16:35] wrote: > > > > Can someone tell me how I can detect if these functions are available > > on a system at compile time? I cannot use an autoconf type of test, > > and need to use a preprocessor macro type of test. > > __FreeBSD__version.
How about giving me useful information, instead of incomplete hints? I already have some code which does: #if (__FreeBSD_version > 440000) /* Do some stuff which uses sigqueue(), sigwaitinfo(), sigtimedwait() */ #endif That test is broken, because it does work on FreeBSD 4.5 (and probably won't work on 4.6, 4.7, etc.). Is there a version of FreeBSD where sigqueue(), sigwaitinfo(), and sigtimedwait() are available by default? If so, what is this version, and what is the correct value of __FreeBSD_version to check for? If someone goes and re-configures their kernel or libc to contain these functions, will a new preprocessor macro value be defined that I can detect? -- Craig Rodrigues Distributed Systems and Logistics, Office 6/304 [EMAIL PROTECTED] BBN Technologies, a Verizon company (617) 873-4725 Cambridge, MA To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message