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.
This commit is contained in:
Florian Müllner 2014-03-05 23:06:44 +01:00
parent 4c2e39bf2c
commit b159d6a5e1
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@
*/
#define _GNU_SOURCE
#define _SVID_SOURCE /* for putenv() */
#define _XOPEN_SOURCE /* for putenv() */
#include <config.h>
#include "keybindings-private.h"

View File

@ -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 <config.h>
#include <meta/main.h>

View File

@ -35,7 +35,7 @@
*/
#define _GNU_SOURCE
#define _SVID_SOURCE /* for gethostname() */
#define _XOPEN_SOURCE 500 /* for gethostname() */
#include <config.h>
#include "window-props.h"