diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 2819ff0..327c6fb 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2010.01.01.124042" +#define Cdrskin_timestamP "2010.01.01.124415" diff --git a/libburn/sg-libcdio.c b/libburn/sg-libcdio.c index 2a146fa..e3ff3eb 100644 --- a/libburn/sg-libcdio.c +++ b/libburn/sg-libcdio.c @@ -98,6 +98,11 @@ Send feedback to libburn-hackers@pykix.org . #include #endif /* Libburn_os_has_stavtfS */ +#ifdef __linux +/* for ioctl(BLKGETSIZE) */ +#include +#include +#endif #include #include @@ -710,9 +715,12 @@ int burn_os_stdio_capacity(char *path, off_t *bytes) if (stat(testpath, &stbuf) == -1) return -1; -#ifdef Libburn_if_this_was_linuX +#ifdef __linux + /* Linux specific determination of block device size */ } else if(S_ISBLK(stbuf.st_mode)) { + int open_mode = O_RDONLY, fd, ret; + fd = open(path, open_mode); if (fd == -1) return -2; @@ -722,7 +730,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes) return -2; *bytes = ((off_t) blocks) * (off_t) 512; -#endif /* Libburn_if_this_was_linuX */ +#endif /* __linux */ } else if(S_ISREG(stbuf.st_mode)) { add_size = stbuf.st_blocks * (off_t) 512;