From: Baoquan He <bhe@redhat.com>
To: kexec@lists.infradead.org
Cc: horms@verge.net.au, Baoquan He <bhe@redhat.com>
Subject: [PATCH] kexec: use _DEFAULT_SOURCE instead to remove compiling warning
Date: Thu, 6 Aug 2015 19:10:55 +0800 [thread overview]
Message-ID: <1438859455-25789-1-git-send-email-bhe@redhat.com> (raw)
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>
---
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
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next reply other threads:[~2015-08-06 11:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 11:10 Baoquan He [this message]
2015-08-13 0:57 ` [PATCH] kexec: use _DEFAULT_SOURCE instead to remove compiling warning Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438859455-25789-1-git-send-email-bhe@redhat.com \
--to=bhe@redhat.com \
--cc=horms@verge.net.au \
--cc=kexec@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox