aboutsummaryrefslogtreecommitdiffstats
path: root/main/metacity/fix-xopen.patch
blob: 13e55c6ac3b8c1a025214c58d75cd704291b2856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"