summaryrefslogtreecommitdiffstats
path: root/kscd/libwm/plat_osf1.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_osf1.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_osf1.c')
-rw-r--r--kscd/libwm/plat_osf1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kscd/libwm/plat_osf1.c b/kscd/libwm/plat_osf1.c
index accf1f81..2ccfc49c 100644
--- a/kscd/libwm/plat_osf1.c
+++ b/kscd/libwm/plat_osf1.c
@@ -33,8 +33,8 @@
#include <fcntl.h>
#include <sys/param.h>
#include <sys/stat.h>
+#include <sys/ststfd.h>
#include <sys/time.h>
-#include <ustat.h>
#include <string.h>
/* #include <sys/rzdisk.h>
#include <sys/cdrom.h> */
@@ -424,13 +424,13 @@ gen_eject(struct wm_drive *d)
{
/* On some systems, we can check to see if the CD is mounted. */
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);
return (ioctl(d->fd, CDROM_EJECT_CADDY, 0));