summaryrefslogtreecommitdiff
path: root/source4/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'source4/SConstruct')
-rw-r--r--source4/SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/SConstruct b/source4/SConstruct
index 2ff867f0ad..e0378ee534 100644
--- a/source4/SConstruct
+++ b/source4/SConstruct
@@ -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>'):