Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The TOC needs to be read in LBA format on OpenBSD.
  • Loading branch information
vext01 committed Oct 6, 2018
1 parent 4d1f7ce commit e2f3919
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/driver/netbsd.c
Expand Up @@ -331,7 +331,11 @@ _cdio_read_toc(_img_private_t *_obj)
return false;
}

#if defined(__OpenBSD__)
req.address_format = CD_LBA_FORMAT;
#else
req.address_format = CD_MSF_FORMAT;
#endif
req.starting_track = FIRST_TRACK_NUM;
req.data_len = (TOTAL_TRACKS + 1) /* leadout! */
* sizeof(struct cd_toc_entry);
Expand Down

0 comments on commit e2f3919

Please sign in to comment.