[PATCH xserver] tests: Fix declaration warning in simple-xinit.c

Peter Hutterer peter.hutterer at who-t.net
Wed Jan 4 07:39:37 UTC 2017


On Wed, Jan 04, 2017 at 12:08:14PM +0500, Mihail Konev wrote:
> Signed-off-by: Mihail Konev <k.mvc at ya.ru>
> ---
>  test/simple-xinit.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/test/simple-xinit.c b/test/simple-xinit.c
> index 89189a609c19..92a38d4b5319 100644
> --- a/test/simple-xinit.c
> +++ b/test/simple-xinit.c
> @@ -25,6 +25,11 @@
>  #include <dix-config.h>
>  #endif
>  
> +/* for asprintf */
> +#ifndef _GNU_SOURCE
> +#define _GNU_SOURCE
> +#endif

shouldn't this come from AC_USE_SYSTEM_EXTENSIONS? Is there some include
order missing here?

Cheers,
   Peter

> +
>  #include <errno.h>
>  #include <signal.h>
>  #include <stdbool.h>
> -- 
> 2.9.2
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list