[syslinux:master] <linux/loop.h>: deal with really ancient Linux kernel headers
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Jun 27 17:12:29 PDT 2010
Commit-ID: e6e2e4dc0b832e68c3a9c9e76467619757772ee7
Gitweb: http://syslinux.zytor.com/commit/e6e2e4dc0b832e68c3a9c9e76467619757772ee7
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 27 Jun 2010 17:09:18 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 27 Jun 2010 17:09:18 -0700
<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 at zytor.com>
---
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 988cfed..90237a3 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 {
More information about the Syslinux-commits
mailing list