]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- argh. it has to be the _old_ kernel dev_t, not current or glibc one
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 4 Aug 2004 16:57:16 +0000 (16:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux-dev_t.patch -> 1.2

util-linux-dev_t.patch

index 7fd130dd4179915f7fefdfe21e804ec4aa3516be..c45b6e6898dd467cf884169aa9fb1c4494f2ff07 100644 (file)
@@ -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 <linux/loop.h>).
+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 <linux/posix_types.h>
- #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
This page took 0.139334 seconds and 4 git commands to generate.