# HG changeset patch # User Mike Frysinger <vap...@gentoo.org> # Date 1364022293 14400 # Node ID 07c3eff1abdaf14173330e3b17657ad46474064c # Parent 63f8d6c469cf51624c9a48dbac1f2ae9b4cd82b6 use AC_USE_SYSTEM_EXTENSIONS instead
The current scp code uses vasprintf which is a GNU extension, but doesn't define _GNU_SOURCE for it. Instead of getting into that mess though, use the autoconf AC_USE_SYSTEM_EXTENSIONS macro to automatically enable all the extra fun stuff for us. diff -r 63f8d6c469cf -r 07c3eff1abda configure.in --- a/configure.in Thu May 17 00:26:12 2012 +0800 +++ b/configure.in Sat Mar 23 03:04:53 2013 -0400 @@ -24,7 +24,7 @@ fi # large file support is useful for scp -AC_SYS_LARGEFILE +AC_USE_SYSTEM_EXTENSIONS # Host specific options # this isn't a definitive list of hosts, they are just added as required