mirror of https://github.com/ArduPilot/ardupilot
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:
parent
e6907a607b
commit
5f80858cba
3
wscript
3
wscript
|
@ -114,6 +114,9 @@ def configure(cfg):
|
||||||
if cfg.options.submodule_update:
|
if cfg.options.submodule_update:
|
||||||
cfg.env.SUBMODULE_UPDATE = True
|
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'))
|
cfg.write_config_header(os.path.join(cfg.variant, 'ap_config.h'))
|
||||||
|
|
||||||
def collect_dirs_to_recurse(bld, globs, **kw):
|
def collect_dirs_to_recurse(bld, globs, **kw):
|
||||||
|
|
Loading…
Reference in New Issue