7195N/AIf _XOPEN_SOURCE is defined, the library must be built as an xpg6
7195N/Aapplication, however it is not, so we instead define __EXTENSIONS__ in the
7195N/AMakefile and then avoid defining _XOPEN_SOURCE.
7195N/A
7195N/ANeeds investigation before contributing to upstream.
7195N/A
7195N/A--- mutter-3.16.1/src/core/delete.c 2015-04-14 12:55:28.000000000 -0700
7195N/A+++ mutter-3.16.1.new/src/core/delete.c 2015-07-18 12:57:28.387713815 -0700
7195N/A@@ -20,7 +20,9 @@
7195N/A * along with this program; if not, see <http://www.gnu.org/licenses/>.
7195N/A */
7195N/A
7195N/A+#ifndef __EXTENSIONS__
7195N/A #define _XOPEN_SOURCE /* for kill() */
7195N/A+#endif
7195N/A
7195N/A #include <config.h>
7195N/A #include "util-private.h"
7195N/A--- mutter-3.16.1/src/core/display.c 2015-04-14 12:56:09.000000000 -0700
7195N/A+++ mutter-3.16.1.new/src/core/display.c 2015-07-18 12:57:03.109624404 -0700
7195N/A@@ -28,7 +28,9 @@
7195N/A * The display is represented as a #MetaDisplay struct.
7195N/A */
7195N/A
7195N/A+#ifndef __EXTENSIONS__
7195N/A #define _XOPEN_SOURCE 600 /* for gethostname() */
7195N/A+#endif
7195N/A
7195N/A #include <config.h>
7195N/A #include "display-private.h"
7195N/A--- mutter-3.16.1/src/core/main.c 2015-04-14 12:55:28.000000000 -0700
7195N/A+++ mutter-3.16.1.new/src/core/main.c 2015-07-18 12:57:20.499111571 -0700
7195N/A@@ -42,7 +42,9 @@
7195N/A */
7195N/A
7195N/A #define _GNU_SOURCE
7195N/A+#ifndef __EXTENSIONS__
7195N/A #define _XOPEN_SOURCE /* for putenv() and some signal-related functions */
7195N/A+#endif
7195N/A
7195N/A #include <config.h>
7195N/A #include <meta/main.h>
7195N/A--- mutter-3.16.1/src/x11/window-props.c 2015-04-06 15:17:15.000000000 -0700
7195N/A+++ mutter-3.16.1.new/src/x11/window-props.c 2015-07-18 12:56:41.006550890 -0700
7195N/A@@ -35,7 +35,9 @@
7195N/A */
7195N/A
7195N/A #define _GNU_SOURCE
7195N/A+#ifndef __EXTENSIONS__
7195N/A #define _XOPEN_SOURCE 500 /* for gethostname() */
7195N/A+#endif
7195N/A
7195N/A #include <config.h>
7195N/A #include "window-props.h"