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
This commit is contained in:
Colin Walters 2010-06-07 13:09:46 -04:00
parent 72a19dd448
commit 604da0f6ea
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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"