chiark / gitweb /
[PATCH] stop using mode_t as different libcs define it in different ways :(
authorgreg@kroah.com <greg@kroah.com>
Thu, 12 Feb 2004 09:29:40 +0000 (01:29 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:27 +0000 (21:32 -0700)
namedev.h
udev.h

index 9cff3710d40554f86d7ee9de70bd8afb1cce8697..a0cdba6b16f83570b50b8adb168cde47df0efaf0 100644 (file)
--- a/namedev.h
+++ b/namedev.h
@@ -74,7 +74,7 @@ struct perm_device {
        char name[NAME_SIZE];
        char owner[OWNER_SIZE];
        char group[GROUP_SIZE];
        char name[NAME_SIZE];
        char owner[OWNER_SIZE];
        char group[GROUP_SIZE];
-       mode_t mode;
+       unsigned int mode;
 };
 
 extern struct list_head config_device_list;
 };
 
 extern struct list_head config_device_list;
diff --git a/udev.h b/udev.h
index 108623e0597eca6515689bc60c0ef1ce47e987ac..9e01e40492ea8c75cc8bb5958120ea00a8a2ee44 100644 (file)
--- a/udev.h
+++ b/udev.h
@@ -40,7 +40,7 @@ struct udevice {
        char type;
        int major;
        int minor;
        char type;
        int major;
        int minor;
-       mode_t mode;
+       unsigned int mode;      /* not mode_t due to conflicting definitions in different libcs */
        char symlink[NAME_SIZE];
 
        /* fields that help us in building strings */
        char symlink[NAME_SIZE];
 
        /* fields that help us in building strings */