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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux