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

Mihail Konev k.mvc at ya.ru
Wed Jan 4 07:08:14 UTC 2017


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
+
 #include <errno.h>
 #include <signal.h>
 #include <stdbool.h>
-- 
2.9.2



More information about the xorg-devel mailing list