[mutter] Add _XOPEN_SOURCE display.c for gethostname()



commit 604da0f6ea06223ed68ca18c1f45d58bc1e6bdab
Author: Colin Walters <walters verbum org>
Date:   Mon Jun 7 13:09:46 2010 -0400

    Add _XOPEN_SOURCE display.c for gethostname()
    
    We shouldn't need _GNU_SOURCE in delete.c anymore either.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=620860

 src/core/delete.c  |    3 +--
 src/core/display.c |    2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/core/delete.c b/src/core/delete.c
index e59101a..fae704b 100644
--- a/src/core/delete.c
+++ b/src/core/delete.c
@@ -22,8 +22,7 @@
  * 02111-1307, USA.
  */
 
-#define _GNU_SOURCE
-#define _SVID_SOURCE /* for gethostname() */
+#define _XOPEN_SOURCE /* for kill() */
 
 #include <config.h>
 #include "util.h"
diff --git a/src/core/display.c b/src/core/display.c
index 9fedf0a..24d2596 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -30,6 +30,8 @@
  * The display is represented as a MetaDisplay struct.
  */
 
+#define _XOPEN_SOURCE 600 /* for gethostname() */
+
 #include <config.h>
 #include "display-private.h"
 #include "util.h"



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