r10481: #define _GNU_SOURCE for comparison_fn_t test.
authorTim Potter <tpot@samba.org>
Sat, 24 Sep 2005 22:58:18 +0000 (22:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:52 +0000 (13:38 -0500)
(This used to be commit 992016e0a975fb1699f71b769746bd04f7bbfebc)

source4/SConstruct

index 2ff867f0adc790178ff3c5c420a81cb7ac45525c..e0378ee5349fc7e573a240a747f07d3b417170fa 100644 (file)
@@ -137,7 +137,7 @@ if hostenv['configure']:
        # Pull in GNU extensions
        defines['_GNU_SOURCE'] = 1
 
-       if conf.CheckType('comparison_fn_t', '#include <stdlib.h>'):
+       if conf.CheckType('comparison_fn_t', '#define _GNU_SOURCE\n#include <stdlib.h>'):
                defines['HAVE_COMPARISON_FN_T'] = 1
 
        if conf.CheckType('sig_atomic_t', '#include <signal.h>'):