# HG changeset patch # User Sam Lantinga # Date 1023741459 0 # Node ID 11d6eed68dbac17e5a84fde06f0051abf769ae2b # Parent 276d0d7ba96c172ba996126acf4902895501d7b7 Added check for ENOMEDIUM to the Linux CDROM code diff -r 276d0d7ba96c -r 11d6eed68dba src/cdrom/linux/SDL_syscdrom.c --- a/src/cdrom/linux/SDL_syscdrom.c Mon Jun 10 20:23:26 2002 +0000 +++ b/src/cdrom/linux/SDL_syscdrom.c Mon Jun 10 20:37:39 2002 +0000 @@ -100,8 +100,12 @@ static void SDL_SYS_CDClose(SDL_CD *cdrom); /* Some ioctl() errno values which occur when the tray is empty */ +#ifndef ENOMEDIUM +#define ENOMEDIUM ENOENT +#endif #define ERRNO_TRAYEMPTY(errno) \ - ((errno == EIO) || (errno == ENOENT) || (errno == EINVAL)) + ((errno == EIO) || (errno == ENOENT) || \ + (errno == EINVAL) || (errno == ENOMEDIUM)) /* Check a drive to see if it is a CD-ROM */ static int CheckDrive(char *drive, char *mnttype, struct stat *stbuf)