diff options
Diffstat (limited to 'kscd/libwm/plat_hpux.c')
-rw-r--r-- | kscd/libwm/plat_hpux.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/kscd/libwm/plat_hpux.c b/kscd/libwm/plat_hpux.c index a7d3c551..ef722437 100644 --- a/kscd/libwm/plat_hpux.c +++ b/kscd/libwm/plat_hpux.c @@ -30,22 +30,14 @@ #include <errno.h> #include <stdio.h> #include <fcntl.h> -#include <ustat.h> #include <unistd.h> #include <sys/types.h> #include <sys/param.h> #include <sys/stat.h> +#include <sys/statfs.h> #include "include/wm_config.h" -/* - * this is for glibc 2.x which the ust structure in - * ustat.h not stat.h - */ -#ifdef __GLIBC__ -#include <sys/ustat.h> -#endif - #include <sys/time.h> #include <sys/scsi.h> @@ -294,13 +286,13 @@ int gen_eject( struct wm_drive *d ) { struct stat stbuf; - struct ustat ust; + struct statfs sfsbuf; if (fstat(d->fd, &stbuf) != 0) return (-2); /* Is this a mounted filesystem? */ - if (ustat(stbuf.st_rdev, &ust) == 0) + if (fstatfs(d->fd, &sfsbuf) == 0) return (-3); return (wm_scsi2_eject(d)); |