libtool git requires an autoreconf
[buildroot.git] / target / x86 / grub / grub.300-honor_UCLIBC_HAS_LFS.patch
blob5b941865ba2213907a10cc1c716a3e3b2ca3e837
1 diff -rup grub-0.97.orig/grub/asmstub.c grub-0.97/grub/asmstub.c
2 --- grub-0.97.orig/grub/asmstub.c 2006-11-29 20:36:20.000000000 +0100
3 +++ grub-0.97/grub/asmstub.c 2006-11-29 21:26:16.000000000 +0100
4 @@ -18,10 +18,13 @@
5 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
6 */
8 +#include <features.h>
9 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
10 /* Try to use glibc's transparant LFS support. */
11 #define _LARGEFILE_SOURCE 1
12 /* lseek becomes synonymous with lseek64. */
13 #define _FILE_OFFSET_BITS 64
14 +#endif
16 /* Simulator entry point. */
17 int grub_stage2 (void);
18 diff -rup grub-0.97.orig/lib/device.c grub-0.97/lib/device.c
19 --- grub-0.97.orig/lib/device.c 2006-11-29 20:36:20.000000000 +0100
20 +++ grub-0.97/lib/device.c 2006-11-29 21:25:19.000000000 +0100
21 @@ -18,10 +18,13 @@
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 +#include <features.h>
26 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
27 /* Try to use glibc's transparant LFS support. */
28 #define _LARGEFILE_SOURCE 1
29 /* lseek becomes synonymous with lseek64. */
30 #define _FILE_OFFSET_BITS 64
31 +#endif
33 #include <stdio.h>
34 #include <stdlib.h>