diff options
author | marcus <marcus@FreeBSD.org> | 2003-02-25 12:42:37 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-02-25 12:42:37 +0800 |
commit | bb5780090522884bc08584de9980b0312ae44a0d (patch) | |
tree | e2ee857cb50196f8a680afceb36107b6e2c042fb /devel | |
parent | 1afe008cf416b5302fcdf6ae1dfb74e3dfd1935a (diff) | |
download | freebsd-ports-graphics-bb5780090522884bc08584de9980b0312ae44a0d.tar.gz freebsd-ports-graphics-bb5780090522884bc08584de9980b0312ae44a0d.tar.zst freebsd-ports-graphics-bb5780090522884bc08584de9980b0312ae44a0d.zip |
Fix build with cdparanoia.
PR: 48618
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gnome-vfs1/files/patch-modules_cdda-method.c | 26 | ||||
-rw-r--r-- | devel/gnomevfs/files/patch-modules_cdda-method.c | 26 |
2 files changed, 52 insertions, 0 deletions
diff --git a/devel/gnome-vfs1/files/patch-modules_cdda-method.c b/devel/gnome-vfs1/files/patch-modules_cdda-method.c new file mode 100644 index 00000000000..d1692cc03e4 --- /dev/null +++ b/devel/gnome-vfs1/files/patch-modules_cdda-method.c @@ -0,0 +1,26 @@ +--- modules/cdda-method.c.orig Wed Jan 22 13:54:31 2003 ++++ modules/cdda-method.c Wed Jan 22 13:54:33 2003 +@@ -623,7 +623,11 @@ + // Check and see if we already have opened and stashed this drive + if (!use_base) { + if (global_context != NULL) { ++#ifdef Linux + if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) == 0) { ++#elif defined(__FreeBSD__) ++ if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) == 0) { ++#endif + use_cache = TRUE; + cdda_close (drive); + gnome_vfs_file_info_copy (file_info, global_context->file_info); +@@ -709,7 +713,11 @@ + if (!use_base) { + // Check for cache + if (global_context != NULL) { ++#ifdef Linux + if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) != 0) { ++#elif defined(__FreeBSD__) ++ if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) != 0) { ++#endif + // Clear old cache + cdda_context_free (global_context); + global_context = cdda_context_new (drive, uri); diff --git a/devel/gnomevfs/files/patch-modules_cdda-method.c b/devel/gnomevfs/files/patch-modules_cdda-method.c new file mode 100644 index 00000000000..d1692cc03e4 --- /dev/null +++ b/devel/gnomevfs/files/patch-modules_cdda-method.c @@ -0,0 +1,26 @@ +--- modules/cdda-method.c.orig Wed Jan 22 13:54:31 2003 ++++ modules/cdda-method.c Wed Jan 22 13:54:33 2003 +@@ -623,7 +623,11 @@ + // Check and see if we already have opened and stashed this drive + if (!use_base) { + if (global_context != NULL) { ++#ifdef Linux + if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) == 0) { ++#elif defined(__FreeBSD__) ++ if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) == 0) { ++#endif + use_cache = TRUE; + cdda_close (drive); + gnome_vfs_file_info_copy (file_info, global_context->file_info); +@@ -709,7 +713,11 @@ + if (!use_base) { + // Check for cache + if (global_context != NULL) { ++#ifdef Linux + if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) != 0) { ++#elif defined(__FreeBSD__) ++ if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) != 0) { ++#endif + // Clear old cache + cdda_context_free (global_context); + global_context = cdda_context_new (drive, uri); |