[PATCH 6/6] define _GNU_SOURCE to get asprintf's definition

David Woodhouse dwmw2 at infradead.org
Tue Aug 26 03:30:06 PDT 2014


On Mon, 2014-08-25 at 10:47 +0200, Nikos Mavrogiannopoulos wrote:
> --- a/auth.c
> +++ b/auth.c
> @@ -19,6 +19,7 @@
>  
>  #include <config.h>
>  
> +#define _GNU_SOURCE /* for asprintf */
>  #include <stdio.h>
>  #include <unistd.h>
>  #include <fcntl.h>

../auth.c:22:0: warning: "_GNU_SOURCE" redefined [enabled by default]
 #define _GNU_SOURCE /* for asprintf */
 ^
In file included from ../auth.c:20:0:
./config.h:198:0: note: this is the location of the previous definition
 #define _GNU_SOURCE 1
 ^


Is this for Windows, just to avoid having to use our asprintf() compat
function?

-- 
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5745 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20140826/48374380/attachment-0001.bin>


More information about the openconnect-devel mailing list