summaryrefslogtreecommitdiffstats
path: root/kscd/libwm/plat_sun.c
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-09-21 12:37:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-09-21 12:37:37 +0200
commit830ea2b69faa81a8b0485a28fc329fd93d67ad46 (patch)
treee892119e70a65600db800b93e9014f75a2870b0a /kscd/libwm/plat_sun.c
parent11485aa4a296406f2d6a96d7f30d09d416d91f03 (diff)
downloadtdemultimedia-830ea2b69faa81a8b0485a28fc329fd93d67ad46.tar.gz
tdemultimedia-830ea2b69faa81a8b0485a28fc329fd93d67ad46.zip
Replace deprecated ustat using fstatfs
This resolves FTBFS with glibc 2.28 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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) {