[PATCH:libICE] Fix stdio.h include for asprintf.

Mikhail Gusarov dottedmag at dottedmag.net
Sun Dec 19 09:46:43 PST 2010


Twas brillig at 18:43:49 19.12.2010 UTC+01 when kibi at debian.org did gyre and gimble:

 CB> asprintf is a GNU extension and one needs to define _GNU_SOURCE before
 CB> including stdio.h. Otherwise, the build breaks this way with
 CB> CFLAGS="-Wall -Werror":
 CB> |   CC     process.lo
 CB> | cc1: warnings being treated as errors
 CB> | process.c: In function ‘ProcessError’:
 CB> | process.c:672: error: implicit declaration of function ‘asprintf’
 CB> | process.c:672: error: nested extern declaration of ‘asprintf’
 CB> | make[2]: *** [process.lo] Error 1

 CB> Signed-off-by: Cyril Brulebois <kibi at debian.org>

Reviewed-by: Mikhail Gusarov <dottedmag at dottedmag.net>

-- 
  http://fossarchy.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101219/f0386d18/attachment.pgp>


More information about the xorg-devel mailing list