From b159d6a5e17219557574defb6c3788d9b0c39757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 5 Mar 2014 23:06:44 +0100 Subject: [PATCH] build: Use non-deprecated feature test macros _SVID_SOURCE has been deprecated in newer versions of glibc breaking -WError; the recommended replacement of _DEFAULT_SOURCE is fairly new, so switch to _XOPEN_SOURCE instead. --- src/core/keybindings.c | 2 +- src/core/main.c | 2 +- src/core/window-props.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index e97c0f2b3..f2c663186 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -28,7 +28,7 @@ */ #define _GNU_SOURCE -#define _SVID_SOURCE /* for putenv() */ +#define _XOPEN_SOURCE /* for putenv() */ #include #include "keybindings-private.h" diff --git a/src/core/main.c b/src/core/main.c index b2eb4cdbb..3f5f3c5a0 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -42,7 +42,7 @@ */ #define _GNU_SOURCE -#define _SVID_SOURCE /* for putenv() and some signal-related functions */ +#define _XOPEN_SOURCE /* for putenv() and some signal-related functions */ #include #include diff --git a/src/core/window-props.c b/src/core/window-props.c index b7799db18..81dce84d2 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -35,7 +35,7 @@ */ #define _GNU_SOURCE -#define _SVID_SOURCE /* for gethostname() */ +#define _XOPEN_SOURCE 500 /* for gethostname() */ #include #include "window-props.h"