]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cd_linux.c
The Linux CD module now uses O_NONBLOCK when opening the CDROM device to avoid failur...
[xonotic/darkplaces.git] / cd_linux.c
index 6e6525eb9282945f23356bd80ae94b3c1d048cd3..feaa5b3a1104ca8fe95d20c5dd0eed76c690af2b 100644 (file)
@@ -202,7 +202,7 @@ void CDAudio_SysInit (void)
 
 int CDAudio_SysStartup (void)
 {
-       if ((cdfile = open(cd_dev, O_RDONLY)) == -1)
+       if ((cdfile = open(cd_dev, O_RDONLY | O_NONBLOCK)) == -1)
        {
                Con_DPrintf("CDAudio_SysStartup: open of \"%s\" failed (%i)\n",
                                        cd_dev, errno);