aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--grpmi/curl_download/curl_download.xs3
-rw-r--r--grpmi/rpm/grpmi_rpm.xs3
2 files changed, 6 insertions, 0 deletions
diff --git a/grpmi/curl_download/curl_download.xs b/grpmi/curl_download/curl_download.xs
index 9fd8b766..ab200d6f 100644
--- a/grpmi/curl_download/curl_download.xs
+++ b/grpmi/curl_download/curl_download.xs
@@ -17,7 +17,10 @@
*
******************************************************************************/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
+
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/grpmi/rpm/grpmi_rpm.xs b/grpmi/rpm/grpmi_rpm.xs
index f67fe1f7..c2c7a923 100644
--- a/grpmi/rpm/grpmi_rpm.xs
+++ b/grpmi/rpm/grpmi_rpm.xs
@@ -17,7 +17,10 @@
*
******************************************************************************/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
+
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>