summaryrefslogtreecommitdiff
path: root/source4/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'source4/SConstruct')
-rw-r--r--source4/SConstruct6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/SConstruct b/source4/SConstruct
index 3e9fd867a0..e791f97d7c 100644
--- a/source4/SConstruct
+++ b/source4/SConstruct
@@ -42,9 +42,6 @@ if hostenv['developer']:
hostenv.Append(CCFLAGS='-Wno-format-y2k')
hostenv.Append(CCFLAGS='-Wno-declaration-after-statement')
-# Pull in GNU extensions
-hostenv.Append(CPPDEFINES = {'_GNU_SOURCE': 1})
-
# Some tools get confused if $HOME isn't defined
hostenv.Append(ENV={'HOME': os.environ['HOME']})
@@ -138,6 +135,9 @@ if hostenv['configure']:
if conf.CheckFunc(f):
defines['HAVE_' + f.upper()] = 1
+ # Pull in GNU extensions
+ defines['_GNU_SOURCE'] = 1
+
needed_types = {
'uint_t': 'unsigned int',
'int8_t': 'signed char',