diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gnome-media/files/patch-gnome-cd_cdrom.c | 17 | ||||
-rw-r--r-- | audio/gnomemedia2/files/patch-gnome-cd_cdrom.c | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/audio/gnome-media/files/patch-gnome-cd_cdrom.c b/audio/gnome-media/files/patch-gnome-cd_cdrom.c new file mode 100644 index 000000000..65322e75f --- /dev/null +++ b/audio/gnome-media/files/patch-gnome-cd_cdrom.c @@ -0,0 +1,17 @@ +--- gnome-cd/cdrom.c.orig Sat Mar 12 01:00:51 2005 ++++ gnome-cd/cdrom.c Sat Mar 12 01:02:57 2005 +@@ -358,9 +358,14 @@ cdrom_open_dev (GnomeCDRom *cdrom, + { + if (cdrom->priv->open_count++ == 0) { + cdrom->fd = open ( ++#if defined(__FreeBSD__) ++ cdrom->priv->device, O_RDONLY); ++#else + cdrom->priv->device, O_RDONLY | O_NONBLOCK); ++#endif + + if (cdrom->fd < 0) { ++ g_warning ("XXX: Failed to open %s: %s", cdrom->priv->device, strerror(errno)); + if (errno == EACCES && error != NULL) { + *error = g_error_new ( + GNOME_CDROM_ERROR, diff --git a/audio/gnomemedia2/files/patch-gnome-cd_cdrom.c b/audio/gnomemedia2/files/patch-gnome-cd_cdrom.c new file mode 100644 index 000000000..65322e75f --- /dev/null +++ b/audio/gnomemedia2/files/patch-gnome-cd_cdrom.c @@ -0,0 +1,17 @@ +--- gnome-cd/cdrom.c.orig Sat Mar 12 01:00:51 2005 ++++ gnome-cd/cdrom.c Sat Mar 12 01:02:57 2005 +@@ -358,9 +358,14 @@ cdrom_open_dev (GnomeCDRom *cdrom, + { + if (cdrom->priv->open_count++ == 0) { + cdrom->fd = open ( ++#if defined(__FreeBSD__) ++ cdrom->priv->device, O_RDONLY); ++#else + cdrom->priv->device, O_RDONLY | O_NONBLOCK); ++#endif + + if (cdrom->fd < 0) { ++ g_warning ("XXX: Failed to open %s: %s", cdrom->priv->device, strerror(errno)); + if (errno == EACCES && error != NULL) { + *error = g_error_new ( + GNOME_CDROM_ERROR, |