btrfs-progs: Remove deprecated _BSD_SOURCE macro.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 19 Dec 2014 06:13:12 +0000 (14:13 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 19 Dec 2014 14:05:06 +0000 (15:05 +0100)
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@cn.fujitsu.com>
Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-receive.c

index 358df1f..f269ade 100644 (file)
@@ -19,7 +19,7 @@
 #define _GNU_SOURCE
 #define _POSIX_C_SOURCE 200809
 #define _XOPEN_SOURCE 700
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 
 #include "kerncompat.h"