|
From: Mark W. <mj...@re...> - 2012-12-11 17:08:56
|
On Tue, Dec 11, 2012 at 10:36:31AM -0600, Rich Coe wrote: > Mark Wielaard <mj...@re...> wrote: > > So, the test now also compiles? > > Then I assume it was the #define _GNU_SOURCE addition. > > But the configure test still makes sense, stpncpy might not be there on > > some platforms/configurations. > > No, because the test result is 'yes', the config parameter is still set > and it still tries to compile the test case. > > The configure test needs to fail so the result is false and the test case > doesn't compile on platforms that don't have the function. Hmmm, OK, how about adding an explicit -Werror then for this test as attached. Does that "fail properly" in your case? Thanks, Mark |