summaryrefslogtreecommitdiff
path: root/src/libpiano
diff options
context:
space:
mode:
Diffstat (limited to 'src/libpiano')
-rw-r--r--src/libpiano/piano.c1
-rw-r--r--src/libpiano/xml.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c
index 34be389..addb988 100644
--- a/src/libpiano/piano.c
+++ b/src/libpiano/piano.c
@@ -23,6 +23,7 @@ THE SOFTWARE.
#ifndef __FreeBSD__
#define _BSD_SOURCE /* required by strdup() */
+#define _DARWIN_C_SOURCE /* strdup() on OS X */
#endif
#include <stdio.h>
diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c
index 6d8e7f9..a21a109 100644
--- a/src/libpiano/xml.c
+++ b/src/libpiano/xml.c
@@ -23,6 +23,7 @@ THE SOFTWARE.
#ifndef __FreeBSD__
#define _BSD_SOURCE /* required by strdup() */
+#define _DARWIN_C_SOURCE /* strdup() on OS X */
#endif
#include <stdio.h>