aboutsummaryrefslogtreecommitdiffstats
path: root/main/metacity/fix-xopen.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-30 16:38:50 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-30 16:38:50 +0000
commit8267dee29fc3288c5deed523af8f46c660574939 (patch)
treed4e28516c987ade9780b2b99f6f5be768b0ccf9b /main/metacity/fix-xopen.patch
parent35d84c71a8e384f083eb51c000b9d31204d8422e (diff)
downloadaports-8267dee29fc3288c5deed523af8f46c660574939.tar.bz2
aports-8267dee29fc3288c5deed523af8f46c660574939.tar.xz
main/metacity: fix musl build
Diffstat (limited to 'main/metacity/fix-xopen.patch')
-rw-r--r--main/metacity/fix-xopen.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/metacity/fix-xopen.patch b/main/metacity/fix-xopen.patch
new file mode 100644
index 0000000000..13e55c6ac3
--- /dev/null
+++ b/main/metacity/fix-xopen.patch
@@ -0,0 +1,28 @@
+--- ./src/ui/theme.c.orig
++++ ./src/ui/theme.c
+@@ -52,6 +52,7 @@
+ * things. This is the parser used for that language.
+ */
+
++#define _XOPEN_SOURCE
+ #include <config.h>
+ #include "theme.h"
+ #include "theme-parser.h"
+@@ -60,7 +61,6 @@
+ #include <gtk/gtk.h>
+ #include <string.h>
+ #include <stdlib.h>
+-#define __USE_XOPEN
+ #include <math.h>
+
+ #define GDK_COLOR_RGBA(color) \
+--- ./src/core/session.c.orig
++++ ./src/core/session.c
+@@ -23,6 +23,7 @@
+ * 02111-1307, USA.
+ */
+
++#define _XOPEN_SOURCE
+ #include <config.h>
+
+ #include "session.h"