summaryrefslogtreecommitdiffstats
path: root/kscd/libwm/plat_sun.c
diff options
context:
space:
mode:
Diffstat (limited to 'kscd/libwm/plat_sun.c')
-rw-r--r--kscd/libwm/plat_sun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kscd/libwm/plat_sun.c b/kscd/libwm/plat_sun.c
index 80ce3567..bb87a8e2 100644
--- a/kscd/libwm/plat_sun.c
+++ b/kscd/libwm/plat_sun.c
@@ -36,6 +36,7 @@ static char plat_sun_id[] = "$Id$";
#include <string.h>
#include <sys/param.h>
#include <sys/stat.h>
+#include <sys/statfs.h>
#include <sys/time.h>
#include <sys/ioctl.h>
@@ -44,7 +45,6 @@ static char plat_sun_id[] = "$Id$";
#include "include/wm_cdrom.h"
#include "include/wm_cdtext.h"
-#include <ustat.h>
#include <unistd.h>
#include <signal.h>
#ifdef solbourne
@@ -602,13 +602,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);
IFCDDA(d) {