From 5f80858cbad6c9442484d84815c02339b6e2bcb9 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 19 Apr 2016 01:29:44 -0300 Subject: [PATCH] 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. --- wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wscript b/wscript index 13f7e62fb1..080cf6e94f 100644 --- a/wscript +++ b/wscript @@ -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):