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 at redhat.com> --- kexec/arch/i386/crashdump-x86.c | 2 +- kexec/arch/i386/kexec-x86-common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c index dea42d0..4375103 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 90534a8..37931e1 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> -- 2.1.0