Commit 0185909e authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Jonas Ådahl

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.

GNOME/mutter!638
parent c35e5619
......@@ -34,7 +34,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#define _XOPEN_SOURCE 500 /* for gethostname() */
#define _XOPEN_SOURCE 600 /* for gethostname() */
#include "config.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment