kexec: use _DEFAULT_SOURCE instead to remove compiling warning
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- kexec/arch/i386/crashdump-x86.c | 2 +- kexec/arch/i386/kexec-x86-common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
kexec/arch/i386/crashdump-x86.c +1 -1
@@ -20,7 +20,7 @@*/ #define _XOPEN_SOURCE 600 -#define _BSD_SOURCE +#define _DEFAULT_SOURCE#include <fcntl.h> #include <stdio.h>
kexec/arch/i386/kexec-x86-common.c +1 -1
@@ -18,7 +18,7 @@*/ #define _XOPEN_SOURCE 600 -#define _BSD_SOURCE +#define _DEFAULT_SOURCE#include <fcntl.h> #include <stddef.h>
Signature · 7 lines
2.1.0 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 5 lines · Baoquan He
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 <[email protected]>
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec