diff options
Diffstat (limited to 'kscd/libwm/plat_news.c')
-rw-r--r-- | kscd/libwm/plat_news.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kscd/libwm/plat_news.c b/kscd/libwm/plat_news.c index 73d66228..88300cd3 100644 --- a/kscd/libwm/plat_news.c +++ b/kscd/libwm/plat_news.c @@ -32,11 +32,11 @@ static char plat_news_id[] = "$Id$"; #include <errno.h> #include <stdio.h> #include <fcntl.h> -#include <ustat.h> #include <CD.h> #include <sys/types.h> #include <sys/param.h> #include <sys/stat.h> +#include <sys/statfs.h> #include <sys/time.h> #include "include/wm_config.h" @@ -362,13 +362,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); if (CD_AutoEject(d->fd)) |