From 4c926bc85d44fc11324f2e7e6337e156eb1c7e5e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 3 Sep 2014 01:15:08 -0700 Subject: [PATCH 298/336] Fix build with glibc 2.20 * grub-core/kern/emu/hostfs.c: squahes below warning warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" Signed-off-by: Khem Raj Upstream-commit-id: a276b840464 --- grub-core/kern/emu/hostfs.c | 4 ++++ ChangeLog | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/grub-core/kern/emu/hostfs.c b/grub-core/kern/emu/hostfs.c index 7e725f65f6a..823116da68e 100644 --- a/grub-core/kern/emu/hostfs.c +++ b/grub-core/kern/emu/hostfs.c @@ -19,7 +19,11 @@ #include +/* Legacy feature macro.*/ #define _BSD_SOURCE +/* New feature macro that provides everything _BSD_SOURCE and + * _SVID_SOURCE provided and possibly more. */ +#define _DEFAULT_SOURCE #include #include #include diff --git a/ChangeLog b/ChangeLog index a2da9743231..d3f26cf2f0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-09-15 Khem Raj + * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to + _BSD_SOURCE to avoid warnings under glibc 2.20+. + 2014-06-21 Роман Пехов * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check. -- 2.26.2