[asterisk-dev] The check for pthread_rwlock_timedrdlock
Olle E. Johansson
oej at edvina.net
Thu Apr 23 04:59:38 CDT 2009
Tilghman,
Thanks for fixing this. However, you might want to read this snippet
on how to check for these POSIX functions:
http://lists.apple.com/archives/Unix-porting/2008/Jan/msg00014.html
"Things get a little confusing sometimes because people tend to use
GNU configure instead of using the feature test macros defined in
<unistd.h>, like they are supposed to, and because there is no forward
index mapping option groups to each interface. As a result, you end up
having to look up the interface on a case by case basis to see what
option group it falls under, and then you have to look up the option
group by its long name to try to find the constant in <unistd.h>. You
can also have non-compliant interfaces with the same names accidently
found by configure, if it uses the linker to test for the existence of
the symbol name in libc, rather than testing for the feature using the
POSIX feature-test macro."
It' might be an improvement for the future.
/O
More information about the asterisk-dev
mailing list