From cf22aa9ff55f9244c3e6bd603d674d0bf11013f1 Mon Sep 17 00:00:00 2001 From: Aaron Hamilton Date: Wed, 21 Jan 2015 23:43:45 +0000 Subject: [PATCH] Use _DEFAULT_SOURCE instead of _BSD_SOURCE, since _BSD_SOURCE is deprecated. --- fuse/main.c | 2 +- mfapi/apicalls/upload_patch.c | 2 +- mfapi/apicalls/upload_simple.c | 2 +- mfapi/apicalls/user_get_session_token.c | 2 +- mfapi/file.c | 2 +- mfapi/mfconn.c | 2 +- mfapi/patch.c | 2 +- mfshell/mfshell.c | 2 +- utils/stringv.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fuse/main.c b/fuse/main.c index effe5c5..30dd900 100644 --- a/fuse/main.c +++ b/fuse/main.c @@ -17,7 +17,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup and struct timespec -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_SOURCE // for strdup on old systems #define _GNU_SOURCE // for getline on old systems #define FUSE_USE_VERSION 30 diff --git a/mfapi/apicalls/upload_patch.c b/mfapi/apicalls/upload_patch.c index d3d7689..614b0ed 100644 --- a/mfapi/apicalls/upload_patch.c +++ b/mfapi/apicalls/upload_patch.c @@ -18,7 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_SOURCE // for strdup on old systems #include #include diff --git a/mfapi/apicalls/upload_simple.c b/mfapi/apicalls/upload_simple.c index 3682b92..29e6934 100644 --- a/mfapi/apicalls/upload_simple.c +++ b/mfapi/apicalls/upload_simple.c @@ -18,7 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_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 36571f8..0c22fc6 100644 --- a/mfapi/apicalls/user_get_session_token.c +++ b/mfapi/apicalls/user_get_session_token.c @@ -18,7 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_SOURCE // for strdup on old systems #include #include diff --git a/mfapi/file.c b/mfapi/file.c index ba540c4..7de59cb 100644 --- a/mfapi/file.c +++ b/mfapi/file.c @@ -18,7 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_SOURCE // for strdup on old systems #include #include diff --git a/mfapi/mfconn.c b/mfapi/mfconn.c index d7b2270..b3705f4 100644 --- a/mfapi/mfconn.c +++ b/mfapi/mfconn.c @@ -18,7 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_SOURCE // for strdup on old systems #include #include diff --git a/mfapi/patch.c b/mfapi/patch.c index ac056b8..aab8d3c 100644 --- a/mfapi/patch.c +++ b/mfapi/patch.c @@ -17,7 +17,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_SOURCE // for strdup on old systems #include #include diff --git a/mfshell/mfshell.c b/mfshell/mfshell.c index 1fc8fcb..d3ccff9 100644 --- a/mfshell/mfshell.c +++ b/mfshell/mfshell.c @@ -19,7 +19,7 @@ #ifdef __linux #define _POSIX_C_SOURCE 200809L // for strdup and getline -#define _BSD_SOURCE // for strsep +#define _DEFAULT_SOURCE // for strsep #else #define _WITH_GETLINE // on freebsd for getline #endif diff --git a/utils/stringv.c b/utils/stringv.c index e032a52..82fbd33 100644 --- a/utils/stringv.c +++ b/utils/stringv.c @@ -17,7 +17,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup -#define _BSD_SOURCE // for strdup on old systems +#define _DEFAULT_SOURCE // for strdup on old systems #include #include