From 830ea2b69faa81a8b0485a28fc329fd93d67ad46 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 --- kscd/libwm/plat_news.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kscd/libwm/plat_news.c') 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 #include #include -#include #include #include #include #include +#include #include #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)) -- cgit v1.2.1