[PATCH] Fix the build. Do not redifine _XOPEN_SOURCE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 dm.c        |    5 +++++
 dmraid.c    |    5 +++++
 exc.c       |    5 +++++
 pyhelpers.c |    5 +++++
 4 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/dm.c b/dm.c
index d4e3a6a..a1572f0 100644
--- a/dm.c
+++ b/dm.c
@@ -37,6 +37,8 @@
 #undef _POSIX_C_SOURCE
 #define ARGHB _GNU_SOURCE
 #undef _GNU_SOURCE
+#define ARGHC _XOPEN_SOURCE
+#undef _XOPEN_SOURCE
 #include <Python.h>
 #undef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE ARGHA
@@ -44,6 +46,9 @@
 #undef _GNU_SOURCE
 #define _GNU_SOURCE ARGHB
 #undef ARGHB
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE ARGHC
+#undef ARGHC
 
 #include "pyhelpers.h"
 #include "dm.h"
diff --git a/dmraid.c b/dmraid.c
index b397adc..b9121f4 100644
--- a/dmraid.c
+++ b/dmraid.c
@@ -27,6 +27,8 @@
 #undef _POSIX_C_SOURCE
 #define ARGHB _GNU_SOURCE
 #undef _GNU_SOURCE
+#define ARGHC _XOPEN_SOURCE
+#undef _XOPEN_SOURCE
 #include <Python.h>
 #undef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE ARGHA
@@ -34,6 +36,9 @@
 #undef _GNU_SOURCE
 #define _GNU_SOURCE ARGHB
 #undef ARGHB
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE ARGHC
+#undef ARGHC
 
 
 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
diff --git a/exc.c b/exc.c
index 96cb1e8..26dff82 100644
--- a/exc.c
+++ b/exc.c
@@ -22,6 +22,8 @@
 #undef _POSIX_C_SOURCE
 #define ARGHB _GNU_SOURCE
 #undef _GNU_SOURCE
+#define ARGHC _XOPEN_SOURCE
+#undef _XOPEN_SOURCE
 #include <Python.h>
 #undef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE ARGHA
@@ -29,6 +31,9 @@
 #undef _GNU_SOURCE
 #define _GNU_SOURCE ARGHB
 #undef ARGHB
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE ARGHC
+#undef ARGHC
 
 #include "exc.h"
 
diff --git a/pyhelpers.c b/pyhelpers.c
index 1a6ad3b..a050839 100644
--- a/pyhelpers.c
+++ b/pyhelpers.c
@@ -20,6 +20,8 @@
 #undef _POSIX_C_SOURCE
 #define ARGHB _GNU_SOURCE
 #undef _GNU_SOURCE
+#define ARGHC _XOPEN_SOURCE
+#undef _XOPEN_SOURCE
 #include <Python.h>
 #undef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE ARGHA
@@ -27,6 +29,9 @@
 #undef _GNU_SOURCE
 #define _GNU_SOURCE ARGHB
 #undef ARGHB
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE ARGHC
+#undef ARGHC
 
 #include <stdarg.h>
 
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux