e0b61cd0ff
non page aligned transfers in libparanoia with a better one that adaptes to the pagesize. For other changes since 2.01a34 see: ftp://ftp.berlios.de/pub/cdrecord/alpha/AN-2.01a35 and ftp://ftp.berlios.de/pub/cdrecord/alpha/AN-2.01a36 Approved by: netchild
19 lines
634 B
C
19 lines
634 B
C
--- cdda2wav/interface.c Mon Dec 29 11:28:09 2003
|
|
+++ cdda2wav/interface.c Sun Jan 18 01:35:50 2004
|
|
@@ -444,7 +444,15 @@
|
|
default: /* for example ATAPI cds */
|
|
#else
|
|
#if defined (__FreeBSD__)
|
|
- case 117:
|
|
+#if __FreeBSD_version >= 501113
|
|
+ case 4: /* GEOM */
|
|
+ if (memcmp(pdev_name, "/dev/acd", sizeof("/dev/acd") - 1) != 0) {
|
|
+ fprintf(stderr, "%s is not an ATAPI CDROM device\n", pdev_name);
|
|
+ exit(SYNTAX_ERROR);
|
|
+ }
|
|
+ /* FALLTHROUGH */
|
|
+#endif
|
|
+ case 117: /* pre-GEOM atapi cd */
|
|
if (!S_ISCHR(statstruct->st_mode)) {
|
|
fprintf(stderr, "%s is not a char device\n",pdev_name);
|
|
exit(SYNTAX_ERROR);
|