From 76ed712251aeab04ce7e7b5d9c421baf9b9f34cd Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sun, 23 Apr 2017 11:28:37 +0200 Subject: 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. Based on mutter commits b159d6a5e17219557574defb6c3788d9b0c39757 and b159d6a5e17219557574defb6c3788d9b0c39757. https://bugzilla.gnome.org/show_bug.cgi?id=763782 taken from: https://git.gnome.org/browse/metacity/commit/?id=56bcf350fb599ec2caf68af4f0f92b1c3999027c --- src/core/delete.c | 2 +- src/core/keybindings.c | 2 +- src/core/main.c | 2 +- src/core/window-props.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/delete.c b/src/core/delete.c index a93a2ac7..4d0c7cd2 100644 --- a/src/core/delete.c +++ b/src/core/delete.c @@ -23,7 +23,7 @@ */ #define _GNU_SOURCE -#define _SVID_SOURCE /* for gethostname() */ +#define _XOPEN_SOURCE /* for gethostname() and kill() */ #include #include "util.h" diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 068199b8..271cf885 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -24,7 +24,7 @@ */ #define _GNU_SOURCE -#define _SVID_SOURCE /* for putenv() */ +#define _XOPEN_SOURCE /* for putenv() */ #include #include "keybindings.h" diff --git a/src/core/main.c b/src/core/main.c index b5ffccf1..31958d22 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 "main.h" diff --git a/src/core/window-props.c b/src/core/window-props.c index 8eff8d8a..c3200290 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -36,7 +36,7 @@ */ #define _GNU_SOURCE -#define _SVID_SOURCE /* for gethostname() */ +#define _XOPEN_SOURCE /* for gethostname() */ #include #include "window-props.h" -- cgit v1.2.1