summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']