summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sord_validate.c5
-rw-r--r--src/sordi.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/sord_validate.c b/src/sord_validate.c
index b80cd5d..869ee1a 100644
--- a/src/sord_validate.c
+++ b/src/sord_validate.c
@@ -1,5 +1,5 @@
/*
- Copyright 2012-2015 David Robillard <http://drobilla.net>
+ Copyright 2012-2016 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -14,7 +14,8 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _BSD_SOURCE // for realpath
+#define _BSD_SOURCE 1 // for realpath
+#define _DEFAULT_SOURCE 1 // for realpath
#include <assert.h>
#include <stdlib.h>
diff --git a/src/sordi.c b/src/sordi.c
index 04259db..8ddbfb4 100644
--- a/src/sordi.c
+++ b/src/sordi.c
@@ -14,8 +14,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _BSD_SOURCE // for realpath
-
#include <assert.h>
#include <stdlib.h>
#include <string.h>