From 2badb605ed23715733f5ef2a31fbbe74bd1cc20e Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 4 Aug 2004 16:57:16 +0000 Subject: [PATCH] - argh. it has to be the _old_ kernel dev_t, not current or glibc one Changed files: util-linux-dev_t.patch -> 1.2 --- util-linux-dev_t.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/util-linux-dev_t.patch b/util-linux-dev_t.patch index 7fd130d..c45b6e6 100644 --- a/util-linux-dev_t.patch +++ b/util-linux-dev_t.patch @@ -1,13 +1,13 @@ -diff -durN -x '*~' util-linux-2.12.orig/mount/my_dev_t.h util-linux-2.12/mount/my_dev_t.h +my_dev_t is used only in struct loop_info definition (see ). +It has to be _old_ kernel dev_t type (i.e. used before 2.6.x). +For 2.6.x headers use __kernel_old_dev_t (for x86: 16-bit, while +__kernel_dev_t is 32-bit and recent glibc dev_t is 64-bit) + --- util-linux-2.12.orig/mount/my_dev_t.h 2003-07-16 22:05:50.000000000 +0200 +++ util-linux-2.12/mount/my_dev_t.h 2004-12-19 14:31:34.467427960 +0100 -@@ -3,5 +3,9 @@ - /* maybe we need __kernel_old_dev_t -- later */ +@@ -4,4 +4,4 @@ /* for ancient systems use "unsigned short" */ -+#if 0 #include - #define my_dev_t __kernel_dev_t -+#else -+#define my_dev_t dev_t -+#endif +-#define my_dev_t __kernel_dev_t ++#define my_dev_t __kernel_old_dev_t -- 2.44.0