> Ayupp, we have a problem here. st_dev is dev_t which is int on Linux, but > on the Hurd, it is the same as fsid (long). But why did you remove the cast > to int of statbuf.st_ino? > > It is possible to determine the size of the field in C. When you do that > and set a variable st_dev_len to 4/8 and then switch on that, do you think > this would be a good solution? Otherwise, you can also just do It is simplest to cast to a long on both platforms. This is correct for us and, as for Linux, the type is promoted.
Description: PGP signature