Fix build with glibc 2.20
PATCH v2 1/1 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 <[email protected]>
Upstream-Status: Submitted
--- grub-core/kern/emu/hostfs.c | 4 ++++ 1 file changed, 4 insertions(+)
grub-core/kern/emu/hostfs.c +4 -0
@@ -19,7 +19,11 @@#include <config-util.h> +/* 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 <grub/fs.h> #include <grub/file.h> #include <grub/disk.h>
Signature · 1 line
2.1.0
В Wed, 3 Sep 2014 01:15:08 -0700
Khem Raj <[email protected]> пишет:
Quoted 16 lines
*
grub-core/kern/emu/hostfs.c: squahes below warning
warning: #warning "_BSD_SOURCEand_SVID_SOURCEare deprecated, use_DEFAULT_SOURCE"Signed-off-by Khem Raj <[email protected]>Upstream-Status: Submitted
--- grub-core/kern/emu/hostfs.c | 4 ++++ 1 file changed, 4 insertions(+)grub-core/kern/emu/hostfs.c +0
-0@@ -19,7 +19,11 @@
grub-core/kern/emu/hostfs.c line 29
Quoted 10 lines
grub-core/kern/emu/hostfs.c +4
-0#include <config-util.h> +/* 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 <grub/fs.h> #include <grub/file.h> #include <grub/disk.h>
Added ChangeLog and pushed.