diff options
author | Dmitry Shachnev <[email protected]> | 2017-04-23 11:28:37 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-05-10 17:03:59 +0200 |
commit | 146ba74e9e76f0c79af1dbefde5573cad65529ec (patch) | |
tree | c8963fe48b5a74cd389de24dfa38ddab54d4c7f7 /src/core/delete.c | |
parent | 105abf2b5f34489bb3a5d62753c32178471379a9 (diff) | |
download | marco-146ba74e9e76f0c79af1dbefde5573cad65529ec.tar.bz2 marco-146ba74e9e76f0c79af1dbefde5573cad65529ec.tar.xz |
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
Diffstat (limited to 'src/core/delete.c')
-rw-r--r-- | src/core/delete.c | 2 |
1 files changed, 1 insertions, 1 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 <config.h> #include "util.h" |