[PATCH] cms-colord: Don't define _GNU_SOURCE if it's defined already

Armin K krejzi at email.com
Wed Aug 7 08:02:00 PDT 2013


warning: "_GNU_SOURCE" redefined [enabled by default]
---
 src/cms-colord.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/cms-colord.c b/src/cms-colord.c
index 6056407..29f005d 100644
--- a/src/cms-colord.c
+++ b/src/cms-colord.c
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
-- 
1.8.3.4



More information about the wayland-devel mailing list