summaryrefslogtreecommitdiff
path: root/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-09-08 14:15:28 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-09-08 14:15:28 +0200
commitfaf7004c13f45442a6cdbe68ba977523d6593fc7 (patch)
treeac89711aa837fefbd02b157cb5f18685acd25b15 /libpiano
parent83ba73a034583165d03873e8c3098397fc9ae5e8 (diff)
downloadpianobar-windows-faf7004c13f45442a6cdbe68ba977523d6593fc7.tar.gz
pianobar-windows-faf7004c13f45442a6cdbe68ba977523d6593fc7.tar.bz2
pianobar-windows-faf7004c13f45442a6cdbe68ba977523d6593fc7.zip
C99 conformance
Diffstat (limited to 'libpiano')
-rw-r--r--libpiano/src/main.c2
-rw-r--r--libpiano/src/xml.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libpiano/src/main.c b/libpiano/src/main.c
index f5e9b85..0510830 100644
--- a/libpiano/src/main.c
+++ b/libpiano/src/main.c
@@ -21,6 +21,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+#define _BSD_SOURCE /* required by strdup() */
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c
index 5045440..8e8fb2a 100644
--- a/libpiano/src/xml.c
+++ b/libpiano/src/xml.c
@@ -21,6 +21,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+#define _BSD_SOURCE /* required by strdup() */
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>