summaryrefslogtreecommitdiff
path: root/src/libpiano
diff options
context:
space:
mode:
authorEitan Adler <lists@eitanadler.com>2011-07-10 12:04:53 +0000
committerLars-Dominik Braun <lars@6xq.net>2011-07-11 17:58:44 +0200
commitf1f0e46cd1c50c04ac71fa61a03b728d99580ef6 (patch)
tree44f88dd362c59581beb8233346b9bc71044b075b /src/libpiano
parenta5411df5b97e1fa746a51d81829ba1b4d81f44f9 (diff)
downloadpianobar-f1f0e46cd1c50c04ac71fa61a03b728d99580ef6.tar.gz
pianobar-f1f0e46cd1c50c04ac71fa61a03b728d99580ef6.tar.bz2
pianobar-f1f0e46cd1c50c04ac71fa61a03b728d99580ef6.zip
Disable feature test macros on FreeBSD
Closes #136
Diffstat (limited to 'src/libpiano')
-rw-r--r--src/libpiano/piano.c2
-rw-r--r--src/libpiano/xml.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c
index 3ed835a..34be389 100644
--- a/src/libpiano/piano.c
+++ b/src/libpiano/piano.c
@@ -21,7 +21,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+#ifndef __FreeBSD__
#define _BSD_SOURCE /* required by strdup() */
+#endif
#include <stdio.h>
#include <string.h>
diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c
index b067bc0..6d8e7f9 100644
--- a/src/libpiano/xml.c
+++ b/src/libpiano/xml.c
@@ -21,7 +21,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+#ifndef __FreeBSD__
#define _BSD_SOURCE /* required by strdup() */
+#endif
#include <stdio.h>
#include <string.h>