summaryrefslogtreecommitdiff
path: root/src/libpiano/xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libpiano/xml.c')
-rw-r--r--src/libpiano/xml.c1
1 files changed, 1 insertions, 0 deletions
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>