waf: use system extensions

In several places we use functions like asprintf() that are only
available in libc when _GNU_SOURCE is defined. Always define _GNU_SOURCE
since we always want to use them.

This fixes the build on Windows using cygwin.
This commit is contained in:
Lucas De Marchi 2016-04-19 01:29:44 -03:00
parent e6907a607b
commit 5f80858cba
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ def configure(cfg):
if cfg.options.submodule_update:
cfg.env.SUBMODULE_UPDATE = True
# Always use system extensions
cfg.define('_GNU_SOURCE', 1)
cfg.write_config_header(os.path.join(cfg.variant, 'ap_config.h'))
def collect_dirs_to_recurse(bld, globs, **kw):