diff options
-rw-r--r-- | src/util.c | 1 | ||||
-rw-r--r-- | wscript | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 */ @@ -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'] |