updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / kiso / libcdio.patch
blob0d0467720c84d80ef66bd046e5c559c3c9f7ebef
1 Index: kiso-0.8.3/src/kiso.cpp
2 ===================================================================
3 --- kiso-0.8.3.orig/src/kiso.cpp
4 +++ kiso-0.8.3/src/kiso.cpp
5 @@ -43,6 +43,11 @@
7 #define DEFAULT_TIMEOUT_MS 10000
9 +#if LIBCDIO_VERSION_NUM < 77
10 +#define mmc_csb_t scsi_mmc_t
11 +#define mmc_run_cmd scsi_run_cmd
12 +#endif
14 static const char* const image2_data[] = {
15 "32 32 41 1",
16 ". c None",
17 @@ -3591,14 +3596,14 @@ void Mainform::showdrive()
19 int i_status;
20 uint8_t buf[500] = { 0, };
21 - scsi_mmc_cdb_t cdb = {{0, }};
22 + mmc_cdb_t cdb = {{0, }};
24 CDIO_MMC_SET_COMMAND(cdb.field, CDIO_MMC_GPCMD_GET_CONFIGURATION);
25 CDIO_MMC_SET_READ_LENGTH8(cdb.field, sizeof(buf));
26 cdb.field[1] = CDIO_MMC_GET_CONF_ALL_FEATURES;
27 cdb.field[3] = 0x0;
29 - i_status = scsi_mmc_run_cmd(p_cdio, 0, &cdb, SCSI_MMC_DATA_READ, sizeof(buf), &buf);
30 + i_status = mmc_run_cmd(p_cdio, 0, &cdb, SCSI_MMC_DATA_READ, sizeof(buf), &buf);
31 if (i_status == 0) {
32 uint8_t *p;
33 uint32_t i_data;