http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51906
--- Comment #32 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-01-31 14:56:36 UTC --- (In reply to comment #31) FYI, the example code for pthread_mutex_trylock at... http://ptgmedia.pearsoncmg.com/images/0201633922/sourcecode/trylock.c http://ptgmedia.pearsoncmg.com/images/0201633922/sourcecode/errors.h compiles fine with "g++-fsf-4.7 -std=c++0x -g -O0 trylock.c" and executes without errors on darwin11.