mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 00:29:23 +00:00
use _llseek even if glibc2.0 under Linux, add a new option --disable-lba-support-bitmap-check into configure.
This commit is contained in:
1 parent
d140ed69d8
commit
844cb6f07d
10 files changed
+146
-91
No files matched your search
+4
-3
@@ -43,11 +43,11 @@ int grub_stage2 (void);
|
||||
#ifdef __linux__
|
||||
# include <sys/ioctl.h> /* ioctl */
|
||||
# include <linux/hdreg.h> /* HDIO_GETGEO */
|
||||
# if __GLIBC__ < 2
|
||||
# if (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 1))
|
||||
/* Maybe libc doesn't have large file support. */
|
||||
# include <linux/unistd.h> /* _llseek */
|
||||
# include <linux/fs.h> /* BLKFLSBUF */
|
||||
# endif /* GLIBC < 2 */
|
||||
# endif /* (GLIBC < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR < 1)) */
|
||||
# ifndef BLKFLSBUF
|
||||
# define BLKFLSBUF _IO (0x12,97)
|
||||
# endif /* ! BLKFLSBUF */
|
||||
@@ -1114,7 +1114,8 @@ biosdisk (int subfunc, int drive, struct geometry *geometry,
|
||||
return BIOSDISK_ERROR_GEOMETRY;
|
||||
|
||||
/* Seek to the specified location. */
|
||||
#if defined(__linux) && (__GLIBC__ < 2)
|
||||
#if defined(__linux__) \
|
||||
&& ((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 1)))
|
||||
/* Maybe libc doesn't have large file support. */
|
||||
{
|
||||
loff_t offset, result;
|
||||
|
||||
Reference in new issue
Block a user