From c9b52332041c428013c496558800c419016e50f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 21 Sep 2018 12:37:37 +0200 Subject: Replace deprecated ustat using fstatfs This resolves FTBFS with glibc 2.28 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 830ea2b69faa81a8b0485a28fc329fd93d67ad46) --- kscd/libwm/plat_sun.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kscd/libwm/plat_sun.c') 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 #include #include +#include #include #include @@ -44,7 +45,6 @@ static char plat_sun_id[] = "$Id$"; #include "include/wm_cdrom.h" #include "include/wm_cdtext.h" -#include #include #include #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) { -- cgit v1.2.1