Fix the following gcc(>4.9) and clang warning: In file included from cmds-receive.c:24: In file included from ./kerncompat.h:22: In file included from /usr/include/stdio.h:27: /usr/include/features.h:148:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-W#warnings] ^ 1 warning generated. Signed-off-by: Qu Wenruo <quwenruo@xxxxxxxxxxxxxx> --- cmds-receive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-receive.c b/cmds-receive.c index 358df1f..5bc8f8c 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -19,7 +19,7 @@ #define _GNU_SOURCE #define _POSIX_C_SOURCE 200809 #define _XOPEN_SOURCE 700 -#define _BSD_SOURCE +#define _DEFAILT_SOURCE #include "kerncompat.h" -- 2.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
