don't include linux/fs.h.
This commit is contained in:
parent
e705c4bdf8
commit
563b471fc7
3 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2000-08-27 OKUJI Yoshinori <okuji@gnu.org>
|
||||
|
||||
* lib/device.c [__linux__]: Don't include linux/fs.h.
|
||||
[!BLKGETSIZE] (BLKGETSIZE): Defined as _IO(0x12,96).
|
||||
* grub/asmstub.c [__linux__]: Don't include linux/fs.h.
|
||||
|
||||
2000-08-27 OKUJI Yoshinori <okuji@gnu.org>
|
||||
|
||||
Preserve a magic number used by Windows NT in a MBR. Shit!
|
||||
|
|
|
@ -48,10 +48,9 @@ int grub_stage2 (void);
|
|||
((__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) || ((__GLIBC__ == 2) && (__GLIBC_MINOR < 1)) */
|
||||
# ifndef BLKFLSBUF
|
||||
# define BLKFLSBUF _IO (0x12,97)
|
||||
# define BLKFLSBUF _IO (0x12,97) /* flush buffer cache */
|
||||
# endif /* ! BLKFLSBUF */
|
||||
#endif /* __linux__ */
|
||||
|
||||
|
|
|
@ -45,7 +45,9 @@
|
|||
# include <linux/major.h> /* FLOPPY_MAJOR */
|
||||
# include <linux/kdev_t.h> /* MAJOR */
|
||||
# include <linux/cdrom.h> /* CDROM_GET_CAPABILITY */
|
||||
# include <linux/fs.h> /* BLKGETSIZE */
|
||||
# ifndef BLKGETSIZE
|
||||
# define BLKGETSIZE _IO(0x12,96) /* return device size */
|
||||
# endif /* ! BLKGETSIZE */
|
||||
#endif /* __linux__ */
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue