diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-06-27 17:09:18 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-06-27 17:09:18 -0700 |
commit | e6e2e4dc0b832e68c3a9c9e76467619757772ee7 (patch) | |
tree | b2fd065b528570444b5567a078bce5bd97056515 /libinstaller/linux | |
parent | 7e0f9d5298bb5bc6368d4bd8c106f06a447872a7 (diff) | |
download | syslinux-e6e2e4dc0b832e68c3a9c9e76467619757772ee7.tar.gz |
<linux/loop.h>: deal with really ancient Linux kernel headers
RHEL4 had a 2.6.9 kernel, but 2.4.20 Linux kernel headers, so put in a
workaround for 2.4 kernel headers.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'libinstaller/linux')
-rw-r--r-- | libinstaller/linux/loop.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libinstaller/linux/loop.h b/libinstaller/linux/loop.h index 988cfede..90237a31 100644 --- a/libinstaller/linux/loop.h +++ b/libinstaller/linux/loop.h @@ -25,6 +25,12 @@ enum { #include <asm/posix_types.h> /* for __kernel_old_dev_t */ #include <linux/types.h> /* for __u64 */ +#include <linux/version.h> /* version of Linux kernel headers */ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +/* We have truly ancient Linux kernel headers installed */ +typedef __kernel_dev_t __kernel_old_dev_t; +#endif /* Backwards compatibility version */ struct loop_info { |