ports/multimedia/mmpython/files/patch-disc__discinfo.py
Alexander Nedotsukov e272b83198 - Workaround Pythons ioctl() wrapper deficency.
- Add CDS constant missed on FreeBSD.
- Catch up with lsdvd output format changes.
- Remove obsolete USE_REINPLACE.

Approved by:	maintainer
2006-03-31 01:58:03 +00:00

13 lines
471 B
Python

--- disc/discinfo.py.orig Sun Feb 26 15:51:41 2006
+++ disc/discinfo.py Sun Feb 26 15:51:44 2006
@@ -139,8 +139,9 @@
# doesn't work. Suppress that warning for Linux users,
# until a better solution can be found.
if os.uname()[0] == 'FreeBSD':
- CDIOREADTOCENTRYS = 0xc0086305L
+ CDIOREADTOCENTRYS = -1073192187
CD_MSF_FORMAT = 2
+ CDS_NO_DISC = 1
try:
fd = os.open(device, os.O_RDONLY | os.O_NONBLOCK)