In some configuration _GNU_SOURCE is defined by the compiler and defining again cause a warning. Do not define again to avoid the warning. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/red-worker.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/red-worker.c b/server/red-worker.c index d64c26e83..b3335a53a 100644 --- a/server/red-worker.c +++ b/server/red-worker.c @@ -17,7 +17,9 @@ */ #include <config.h> +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include <stdio.h> #include <stdarg.h> #include <stdlib.h> -- 2.20.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel