From: greg@kroah.com Date: Thu, 12 Feb 2004 09:29:40 +0000 (-0800) Subject: [PATCH] stop using mode_t as different libcs define it in different ways :( X-Git-Tag: 017~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d45ea2b70c0cba69b02dae81d696a8b4c05c1771;p=systemd [PATCH] stop using mode_t as different libcs define it in different ways :( --- diff --git a/namedev.h b/namedev.h index 9cff3710..a0cdba6b 100644 --- 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]; - mode_t mode; + unsigned int mode; }; extern struct list_head config_device_list; diff --git a/udev.h b/udev.h index 108623e0..9e01e404 100644 --- a/udev.h +++ b/udev.h @@ -40,7 +40,7 @@ struct udevice { 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 */