summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2015-08-06 19:10:55 +0800
committerSimon Horman <horms@verge.net.au>2015-08-13 09:57:13 +0900
commitc9c21cc107dcc9b6053e39ead1069e03717513f9 (patch)
treef55d71afd25177267080acfabb72c6225ca76467
parent973426e8537783bd7adb4519f515a0b6e3bb0978 (diff)
kexec: use _DEFAULT_SOURCE instead to remove compiling warning
Now compiling will print warning like below. Change code as it suggested. # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/i386/crashdump-x86.c2
-rw-r--r--kexec/arch/i386/kexec-x86-common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
index 82bf239..569c99a 100644
--- a/kexec/arch/i386/crashdump-x86.c
+++ b/kexec/arch/i386/crashdump-x86.c
@@ -20,7 +20,7 @@
*/
#define _XOPEN_SOURCE 600
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <fcntl.h>
#include <stdio.h>
diff --git a/kexec/arch/i386/kexec-x86-common.c b/kexec/arch/i386/kexec-x86-common.c
index 3624192..91e4f94 100644
--- a/kexec/arch/i386/kexec-x86-common.c
+++ b/kexec/arch/i386/kexec-x86-common.c
@@ -18,7 +18,7 @@
*/
#define _XOPEN_SOURCE 600
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <fcntl.h>
#include <stddef.h>