summaryrefslogtreecommitdiff
path: root/src/core/window-props.c
diff options
context:
space:
mode:
authorDmitry Shachnev <[email protected]>2017-04-23 11:28:37 +0200
committerraveit65 <[email protected]>2017-04-23 11:29:38 +0200
commit76ed712251aeab04ce7e7b5d9c421baf9b9f34cd (patch)
tree00c9f63c47adcfc28b9fdb4f03a32df0fe3c7825 /src/core/window-props.c
parente48528e58dbebbe94ea05a78946615b2378e5fd2 (diff)
downloadmarco-76ed712251aeab04ce7e7b5d9c421baf9b9f34cd.tar.bz2
marco-76ed712251aeab04ce7e7b5d9c421baf9b9f34cd.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/window-props.c')
-rw-r--r--src/core/window-props.c2
1 files changed, 1 insertions, 1 deletions
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 <config.h>
#include "window-props.h"