summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-01 13:02:32 -0400
committerDavid Robillard <d@drobilla.net>2016-10-01 13:02:32 -0400
commit78187c2841368b443d2c9ee5cbebc95ce9553db0 (patch)
tree772026054b93b9b46b78c3f7bca34a2450b27bd6
parent4fa91364b545ccba013435f75a72b87e6eb63b87 (diff)
downloadlilv-78187c2841368b443d2c9ee5cbebc95ce9553db0.tar.gz
lilv-78187c2841368b443d2c9ee5cbebc95ce9553db0.tar.bz2
lilv-78187c2841368b443d2c9ee5cbebc95ce9553db0.zip
Transition away from deprecated _BSD_SOURCE
-rw-r--r--src/util.c1
-rw-r--r--wscript2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 864bcbb..0c1fd5e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -16,6 +16,7 @@
#define _POSIX_C_SOURCE 200809L /* for fileno */
#define _BSD_SOURCE 1 /* for realpath, symlink */
+#define _DEFAULT_SOURCE 1 /* for realpath, symlink */
#ifdef __APPLE__
# define _DARWIN_C_SOURCE 1 /* for flock */
diff --git a/wscript b/wscript
index aadeccc..ba86c27 100644
--- a/wscript
+++ b/wscript
@@ -96,7 +96,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE',
atleast_version='1.0.0', mandatory=False)
- defines = ['_POSIX_C_SOURCE=200809L', '_BSD_SOURCE']
+ defines = ['_POSIX_C_SOURCE=200809L', '_BSD_SOURCE', '_DEFAULT_SOURCE']
if conf.env.DEST_OS == 'darwin':
defines += ['_DARWIN_C_SOURCE']