aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-receive.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-12-19 14:13:12 +0800
committerDavid Sterba <dsterba@suse.cz>2014-12-19 15:05:06 +0100
commit08efa54a6e7cece8e2f82955401bcd849430418b (patch)
tree0228393b4d6e97e498aee7e9970fde3252f4a523 /cmds-receive.c
parent97bf00f5955e9431b1d07c2b3040b20d33b9b33b (diff)
downloadbtrfs-progs-08efa54a6e7cece8e2f82955401bcd849430418b.tar.gz
btrfs-progs-08efa54a6e7cece8e2f82955401bcd849430418b.tar.xz
btrfs-progs-08efa54a6e7cece8e2f82955401bcd849430418b.zip
btrfs-progs: Remove deprecated _BSD_SOURCE macro.
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>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r--cmds-receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-receive.c b/cmds-receive.c
index 358df1f..f269ade 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 _DEFAULT_SOURCE
#include "kerncompat.h"