summaryrefslogtreecommitdiffstats
path: root/kscd/libwm/plat_ultrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'kscd/libwm/plat_ultrix.c')
-rw-r--r--kscd/libwm/plat_ultrix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kscd/libwm/plat_ultrix.c b/kscd/libwm/plat_ultrix.c
index 010055d0..735c6f79 100644
--- a/kscd/libwm/plat_ultrix.c
+++ b/kscd/libwm/plat_ultrix.c
@@ -36,8 +36,8 @@ static char plat_ultrix_id[] = "$Id$";
#include <fcntl.h>
#include <sys/param.h>
#include <sys/stat.h>
+#include <sys/statfs.h>
#include <sys/time.h>
-#include <ustat.h>
#include <string.h>
#include <sys/rzdisk.h>
#include <sys/cdrom.h>
@@ -475,13 +475,13 @@ gen_eject(struct wm_drive *d)
{
/* On some systems, we can check to see if the CD is mounted. */
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 (ioctl(d->fd, CDROM_EJECT_CADDY));