|
From: Rich C. <rc...@wi...> - 2012-12-11 14:54:26
|
The configure test fails true. configure:6774: checking for stpncpy configure:6795: gcc -c -Wno-long-long conftest.c >&5 conftest.c: In function 'main': conftest.c:42: warning: incompatible implicit declaration of built-in function 'stpncpy' configure:6795: $? = 0 configure:6798: result: yes On Tue, 11 Dec 2012 11:16:32 +0100 Mark Wielaard <mj...@re...> wrote: > 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 -- Rich Coe rc...@wi... |