diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-06-14 21:41:12 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-06-14 21:41:12 +0200 |
commit | 22b80a23fcee4c7a1b88f2fd5cf017d96c515b92 (patch) | |
tree | 1785a4099a6c2b3b2e981307cc734562f42e1818 /boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch | |
parent | f4b7efe504a028035dd121e38caff2c781183ef9 (diff) | |
parent | fa2a311b7756fc458ae55b5aa90ac865cef6c498 (diff) | |
download | buildroot-novena-22b80a23fcee4c7a1b88f2fd5cf017d96c515b92.tar.gz buildroot-novena-22b80a23fcee4c7a1b88f2fd5cf017d96c515b92.zip |
Merge branch 'bootloaders-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch')
-rw-r--r-- | boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch b/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch new file mode 100644 index 000000000..5b941865b --- /dev/null +++ b/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch @@ -0,0 +1,34 @@ +diff -rup grub-0.97.orig/grub/asmstub.c grub-0.97/grub/asmstub.c +--- grub-0.97.orig/grub/asmstub.c 2006-11-29 20:36:20.000000000 +0100 ++++ grub-0.97/grub/asmstub.c 2006-11-29 21:26:16.000000000 +0100 +@@ -18,10 +18,13 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + ++#include <features.h> ++#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__) + /* Try to use glibc's transparant LFS support. */ + #define _LARGEFILE_SOURCE 1 + /* lseek becomes synonymous with lseek64. */ + #define _FILE_OFFSET_BITS 64 ++#endif + + /* Simulator entry point. */ + int grub_stage2 (void); +diff -rup grub-0.97.orig/lib/device.c grub-0.97/lib/device.c +--- grub-0.97.orig/lib/device.c 2006-11-29 20:36:20.000000000 +0100 ++++ grub-0.97/lib/device.c 2006-11-29 21:25:19.000000000 +0100 +@@ -18,10 +18,13 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + ++#include <features.h> ++#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__) + /* Try to use glibc's transparant LFS support. */ + #define _LARGEFILE_SOURCE 1 + /* lseek becomes synonymous with lseek64. */ + #define _FILE_OFFSET_BITS 64 ++#endif + + #include <stdio.h> + #include <stdlib.h> |