|
1 If _XOPEN_SOURCE is defined, the library must be built as an xpg6 |
|
2 application, however it is not, so we instead define __EXTENSIONS__ in the |
|
3 Makefile and then avoid defining _XOPEN_SOURCE. |
|
4 |
|
5 Needs investigation before contributing to upstream. |
|
6 |
|
7 --- mutter-3.16.1/src/core/delete.c 2015-04-14 12:55:28.000000000 -0700 |
|
8 +++ mutter-3.16.1.new/src/core/delete.c 2015-07-18 12:57:28.387713815 -0700 |
|
9 @@ -20,7 +20,9 @@ |
|
10 * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|
11 */ |
|
12 |
|
13 +#ifndef __EXTENSIONS__ |
|
14 #define _XOPEN_SOURCE /* for kill() */ |
|
15 +#endif |
|
16 |
|
17 #include <config.h> |
|
18 #include "util-private.h" |
|
19 --- mutter-3.16.1/src/core/display.c 2015-04-14 12:56:09.000000000 -0700 |
|
20 +++ mutter-3.16.1.new/src/core/display.c 2015-07-18 12:57:03.109624404 -0700 |
|
21 @@ -28,7 +28,9 @@ |
|
22 * The display is represented as a #MetaDisplay struct. |
|
23 */ |
|
24 |
|
25 +#ifndef __EXTENSIONS__ |
|
26 #define _XOPEN_SOURCE 600 /* for gethostname() */ |
|
27 +#endif |
|
28 |
|
29 #include <config.h> |
|
30 #include "display-private.h" |
|
31 --- mutter-3.16.1/src/core/main.c 2015-04-14 12:55:28.000000000 -0700 |
|
32 +++ mutter-3.16.1.new/src/core/main.c 2015-07-18 12:57:20.499111571 -0700 |
|
33 @@ -42,7 +42,9 @@ |
|
34 */ |
|
35 |
|
36 #define _GNU_SOURCE |
|
37 +#ifndef __EXTENSIONS__ |
|
38 #define _XOPEN_SOURCE /* for putenv() and some signal-related functions */ |
|
39 +#endif |
|
40 |
|
41 #include <config.h> |
|
42 #include <meta/main.h> |
|
43 --- mutter-3.16.1/src/x11/window-props.c 2015-04-06 15:17:15.000000000 -0700 |
|
44 +++ mutter-3.16.1.new/src/x11/window-props.c 2015-07-18 12:56:41.006550890 -0700 |
|
45 @@ -35,7 +35,9 @@ |
|
46 */ |
|
47 |
|
48 #define _GNU_SOURCE |
|
49 +#ifndef __EXTENSIONS__ |
|
50 #define _XOPEN_SOURCE 500 /* for gethostname() */ |
|
51 +#endif |
|
52 |
|
53 #include <config.h> |
|
54 #include "window-props.h" |