summaryrefslogtreecommitdiff
path: root/devel/SDL/patches/patch-ab
blob: d680da5288aa037cc280ec1a628c7278bf6e59c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$NetBSD: patch-ab,v 1.8 2008/10/13 17:15:44 reinoud Exp $

--- src/cdrom/openbsd/SDL_syscdrom.c.orig	2007-12-31 05:47:59.000000000 +0100
+++ src/cdrom/openbsd/SDL_syscdrom.c
@@ -391,6 +391,7 @@ static int SDL_SYS_CDStop(SDL_CD *cdrom)
 /* Eject the CD-ROM */
 static int SDL_SYS_CDEject(SDL_CD *cdrom)
 {
+	SDL_SYS_CDioctl(cdrom->id, CDIOCALLOW, 0);
 	return(SDL_SYS_CDioctl(cdrom->id, CDIOCEJECT, 0));
 }