From 0185909ee3bedcb2732c9d23db104b24bb009dbb Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Mon, 24 Jun 2019 00:02:41 +0800 Subject: [PATCH] window-x11: Fix _XOPEN_SOURCE usage for gethostname on FreeBSD On FreeBSD, gethostname is guarded by '__POSIX_VISIBLE >= 200112', which requires either '_POSIX_C_SOURCE >= 200112' or '_XOPEN_SOURCE >= 600'. Defining _XOPEN_SOURCE to 500 does not break the build because of implicit declaration, but it defeats the purpose of defining the macro. https://gitlab.gnome.org/GNOME/mutter/merge_requests/638 --- src/x11/window-props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/window-props.c b/src/x11/window-props.c index adaab0eba..48454befe 100644 --- a/src/x11/window-props.c +++ b/src/x11/window-props.c @@ -34,7 +34,7 @@ * along with this program; if not, see . */ -#define _XOPEN_SOURCE 500 /* for gethostname() */ +#define _XOPEN_SOURCE 600 /* for gethostname() */ #include "config.h"