|
From: Mark W. <mj...@re...> - 2012-12-11 10:16:47
|
On Fri, 2012-12-07 at 08:15 -0500, Michael Sweet wrote: > OS X has it starting in 10.7, but it could also be the compiler you are using (gcc vs. clang) > > The prototype is wrapped with the following conditional test: > > #if __DARWIN_C_LEVEL >= 200809L I am not sure I understand what that really means. But I see the code doesn't explicitly define _GNU_SOURCE which is probably a good idea in this case. Also probably a simple configure check for enabling the test seems in order. Does the attached work for you? (I don't have access to any darwin based setups.) Thanks, Mark |