diff options
Diffstat (limited to 'src/libpiano')
-rw-r--r-- | src/libpiano/piano.c | 2 | ||||
-rw-r--r-- | src/libpiano/xml.c | 2 |
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> |