Linux/MIPS uses "unsigned long" instead of dev_t in struct stat
authorDavid Lichteblau <david@lichteblau.com>
Wed, 31 Oct 2012 15:20:11 +0000 (16:20 +0100)
committerDavid Lichteblau <david@lichteblau.com>
Sun, 1 Dec 2013 10:13:28 +0000 (11:13 +0100)
Handle rdev the same way as dev.

contrib/sb-posix/constants.lisp

index 0b66705..789cb91 100644 (file)
               ((unsigned 32) dev "dev_t" "st_dev")
               (nlink-t nlink "nlink_t" "st_nlink")
               (uid-t uid "uid_t" "st_uid")
+              ;; Linux/MIPS uses unsigned long instead of dev_t here.
               #-mips
               (dev-t rdev "dev_t" "st_rdev")
+              #+mips
+              ((unsigned 32) rdev "dev_t" "st_rdev")
               (gid-t gid "gid_t" "st_gid")
               (off-t size "off_t" "st_size")
               (time-t atime "time_t" "st_atime")