summaryrefslogtreecommitdiff
path: root/src/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-07-13 17:33:25 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-07-14 17:24:57 +0200
commit71774028f08edd8ff70f0afd7617ee0cd76d30c8 (patch)
tree7535c0b96b8523aeef7bf3f7a2a62b731322bce7 /src/libpiano
parentf1f0e46cd1c50c04ac71fa61a03b728d99580ef6 (diff)
downloadpianobar-windows-71774028f08edd8ff70f0afd7617ee0cd76d30c8.tar.gz
pianobar-windows-71774028f08edd8ff70f0afd7617ee0cd76d30c8.tar.bz2
pianobar-windows-71774028f08edd8ff70f0afd7617ee0cd76d30c8.zip
Defined _DARWIN_C_SOURCE
Required to expose non-standard functions. Closes #138
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>