diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-11 12:29:23 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-11 12:29:23 +0100 |
commit | 407f9b8fde3ad9cc55f39f7a548cde6056dab494 (patch) | |
tree | 0375ea8ddab3502bf6883066f43fc7e328d5c704 /package/scsi-spin | |
parent | 2ecefcf609e484d04d1546581191831e07ad71ec (diff) | |
parent | abb858ae43374dc13a5fcef19b9e0ba9442013bb (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/scsi-spin')
-rw-r--r-- | package/scsi-spin/src/scsi-spin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/scsi-spin/src/scsi-spin.c b/package/scsi-spin/src/scsi-spin.c index 443934c78..b92347ff4 100644 --- a/package/scsi-spin/src/scsi-spin.c +++ b/package/scsi-spin/src/scsi-spin.c @@ -31,6 +31,7 @@ #include <linux/major.h> #include <sys/sysmacros.h> #include <sys/stat.h> +#include <sys/types.h> #define SCSI_DISK_MAJOR(M) ((M) == SCSI_DISK0_MAJOR || \ ((M) >= SCSI_DISK1_MAJOR && \ @@ -203,8 +204,8 @@ is_mounted( const char* device, int use_proc, int devmaj, int devmin ) struct stat devstat; int mounted = 0; struct { - __uint32_t dev_id; - __uint32_t host_unique_id; + uint32_t dev_id; + uint32_t host_unique_id; } scsi_dev_id, scsi_id; FILE *mtab; char *mtabfile = use_proc ? "/proc/mounts" : "/etc/mtab"; |