Skip to contentSkip to conversation

Fix build with glibc 2.20

PATCH In review Khem Raj 2 participants 2 messages Sep 3, 2014 – Sep 15, 2014

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

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"

Upstream-Status: Submitted

---
 grub-core/kern/emu/hostfs.c | 4 ++++
 1 file changed, 4 insertions(+)
grub-core/kern/emu/hostfs.c +4 -0
index 7e725f6..823116d 100644
@@ -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
#1 lore raw

В 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_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

Upstream-Status: Submitted

---
 grub-core/kern/emu/hostfs.c | 4 ++++
 1 file changed, 4 insertions(+)
grub-core/kern/emu/hostfs.c +0 -0
index 7e725f6..823116d 100644
@@ -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.