openbsd-ports/audio/grip/patches/patch-src_cddev_c
sturm 57bdad4cf1 update to grip 3.0.7 from new maintainer
Steve Shockley <steve.shockley at shockley.net>
with a little cleanup from me
2004-09-26 09:23:44 +00:00

25 lines
567 B
Plaintext

$OpenBSD: patch-src_cddev_c,v 1.2 2004/09/26 09:23:44 sturm Exp $
--- src/cddev.c.orig Sat Jan 4 20:04:08 2003
+++ src/cddev.c Sun Sep 26 10:06:26 2004
@@ -52,7 +52,7 @@
#define NON_BLOCKING
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
#define CDIOREADSUBCHANNEL CDIOCREADSUBCHANNEL
#endif
@@ -628,7 +628,10 @@ gboolean CDEject(DiscInfo *disc)
if(ioctl(disc->cd_desc,CDROMEJECT)<0)
return FALSE;
#endif
-
+#ifdef __OpenBSD__
+ close( disc->cd_desc );
+ disc->cd_desc = -1;
+#endif
return TRUE;
}