]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix build with glibc 2.20
authorKhem Raj <raj.khem@gmail.com>
Wed, 3 Sep 2014 08:15:08 +0000 (01:15 -0700)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Mon, 15 Sep 2014 15:59:27 +0000 (19:59 +0400)
* 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 <raj.khem@gmail.com>
Upstream-Status: Submitted

ChangeLog
grub-core/kern/emu/hostfs.c

index 0676065783dbe8d29463fd7f4816c1cc14043c5c..ea011b7d3abb6da6945c010ae3690fa0fc9b0ef1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-15  Khem Raj <raj.khem@gmail.com>
+       * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
+       _BSD_SOURCE to avoid warnings under glibc 2.20+.
+
 2014-09-08  Michael Chang  <mchang@suse.com>
 
        * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
index 7e725f65f6a73c67cb6d0a3cf3509e374a29cab5..823116da68efdf5277817732657a1f2c97a71236 100644 (file)
 
 #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>