X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fboot%2Fgrub%2Fgrub.300-honor_UCLIBC_HAS_LFS.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fboot%2Fgrub%2Fgrub.300-honor_UCLIBC_HAS_LFS.patch;h=8ed9d76c3649f0bda953d586e33e9b98ecfb84fb;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch b/cirros-testvm/src-cirros/buildroot-2015.05/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch new file mode 100644 index 0000000..8ed9d76 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch @@ -0,0 +1,36 @@ +Index: b/grub/asmstub.c +=================================================================== +--- a/grub/asmstub.c ++++ b/grub/asmstub.c +@@ -18,10 +18,13 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + ++#include ++#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); +Index: b/lib/device.c +=================================================================== +--- a/lib/device.c ++++ b/lib/device.c +@@ -18,10 +18,13 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + ++#include ++#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 + #include