features.h should never be included explicitly.
This fixes the bug where "File not found" error is reported by grub. This fix works under both uclibc and glibc.
This commit is contained in:
parent
7d77306f29
commit
714df8fb60
@ -5,7 +5,7 @@ diff -rup grub-0.97.orig/grub/asmstub.c grub-0.97/grub/asmstub.c
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
+#include <features.h>
|
||||
+/* #include <features.h> - NK */
|
||||
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
|
||||
/* Try to use glibc's transparant LFS support. */
|
||||
#define _LARGEFILE_SOURCE 1
|
||||
@ -22,7 +22,7 @@ diff -rup grub-0.97.orig/lib/device.c grub-0.97/lib/device.c
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
+#include <features.h>
|
||||
+/* #include <features.h> - NK */
|
||||
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
|
||||
/* Try to use glibc's transparant LFS support. */
|
||||
#define _LARGEFILE_SOURCE 1
|
||||
|
Loading…
Reference in New Issue
Block a user