]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
hostfs: Drop unnecessary feature test macros
authorColin Watson <cjwatson@ubuntu.com>
Mon, 23 Mar 2015 14:27:41 +0000 (14:27 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Mon, 23 Mar 2015 14:32:30 +0000 (14:32 +0000)
_BSD_SOURCE was added to allow the use of DT_DIR, but that was removed
in e768b77068a0b030a07576852bd0f121c9a077eb.  While adding
_DEFAULT_SOURCE as well works around problems with current glibc,
neither is in fact needed nowadays.

grub-core/kern/emu/hostfs.c

index 823116da68efdf5277817732657a1f2c97a71236..7b28c001f2e83e087740428760e3b0b8e0478908 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>