diff --git a/dvdauth.c b/dvdauth.c index 6c02ef1d48..65801d6dda 100644 --- a/dvdauth.c +++ b/dvdauth.c @@ -8,6 +8,7 @@ #include #include //#include // FIXME: conflicts with fs.h +#include #include #include #include @@ -76,7 +77,6 @@ int descrambling=0; */ #ifdef __linux__ #include -#include #ifndef FIBMAP #define FIBMAP 1 @@ -185,7 +185,8 @@ int dvd_auth ( char *dev , char *filename ) DVDHandle dvd; /* DVD device handle */ if ((dvd=DVDOpenDevice(dev)) == DVDOpenFailed) { - fprintf(stderr,"DVD: cannot open DVD device \"%s\".\n",dev); + fprintf(stderr,"DVD: cannot open DVD device \"%s\": %s.\n", + dev, strerror(errno)); return 1; }