diff mbox series

[6/8] kernel-shark: Fix the compile warnings about _GNU_SOURCE being redefined

Message ID 20190213161216.14438-7-ykaradzhov@vmware.com (mailing list archive)
State Accepted
Headers show
Series Various modifications toward KS 1.0 | expand

Commit Message

Yordan Karadzhov Feb. 13, 2019, 4:12 p.m. UTC
Fixes wornings from:

kernel-shark/src/libkshark-configio.c

and

kernel-shark/src/libkshark-plugin.c

Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
---
 kernel-shark/src/libkshark-configio.c | 4 ++++
 kernel-shark/src/libkshark-plugin.c   | 5 +++++
 2 files changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/kernel-shark/src/libkshark-configio.c b/kernel-shark/src/libkshark-configio.c
index d7b8a69..ab88864 100644
--- a/kernel-shark/src/libkshark-configio.c
+++ b/kernel-shark/src/libkshark-configio.c
@@ -10,8 +10,12 @@ 
   */
 
 // C
+#ifndef _GNU_SOURCE
 /** Use GNU C Library. */
 #define _GNU_SOURCE
+
+#endif
+
 #include <stdio.h>
 #include <sys/stat.h>
 
diff --git a/kernel-shark/src/libkshark-plugin.c b/kernel-shark/src/libkshark-plugin.c
index 10e4647..4b21392 100644
--- a/kernel-shark/src/libkshark-plugin.c
+++ b/kernel-shark/src/libkshark-plugin.c
@@ -10,7 +10,12 @@ 
   */
 
 // C
+#ifndef _GNU_SOURCE
+/** Use GNU C Library. */
 #define _GNU_SOURCE
+
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>