From 70a6056d7841ea143bf8e101ad4b0259cdbc2da3 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 27 Dec 2014 17:24:04 -0600 Subject: [PATCH] fixes for files in the apicalls directory for strdup on old systems --- mfapi/apicalls/upload_patch.c | 1 + mfapi/apicalls/upload_simple.c | 1 + mfapi/apicalls/user_get_session_token.c | 1 + 3 files changed, 3 insertions(+) diff --git a/mfapi/apicalls/upload_patch.c b/mfapi/apicalls/upload_patch.c index ce17cfa..3248a13 100644 --- a/mfapi/apicalls/upload_patch.c +++ b/mfapi/apicalls/upload_patch.c @@ -18,6 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup +#define _BSD_SOURCE // for strdup on old systems #include #include diff --git a/mfapi/apicalls/upload_simple.c b/mfapi/apicalls/upload_simple.c index feb4404..5cddf38 100644 --- a/mfapi/apicalls/upload_simple.c +++ b/mfapi/apicalls/upload_simple.c @@ -18,6 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup +#define _BSD_SOURCE // for strdup on old systems #include #include diff --git a/mfapi/apicalls/user_get_session_token.c b/mfapi/apicalls/user_get_session_token.c index 0326457..65df3b2 100644 --- a/mfapi/apicalls/user_get_session_token.c +++ b/mfapi/apicalls/user_get_session_token.c @@ -18,6 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup +#define _BSD_SOURCE // for strdup on old systems #include #include