summaryrefslogtreecommitdiff
path: root/package/udev
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-12 00:43:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-12 00:43:43 +0100
commit965bf8becf63a12169cd964973e3a56fd96e21fe (patch)
tree5c9459da5196712c9153304804a1b44510b6e00b /package/udev
parent070cac9d32fa7a0f7f4d52eddec901d248cdfae3 (diff)
a bunch of FreeBSD compatibility patches
Diffstat (limited to 'package/udev')
-rw-r--r--package/udev/patches/patch-extras_cdrom_id_cdrom_id_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/udev/patches/patch-extras_cdrom_id_cdrom_id_c b/package/udev/patches/patch-extras_cdrom_id_cdrom_id_c
new file mode 100644
index 000000000..06c053779
--- /dev/null
+++ b/package/udev/patches/patch-extras_cdrom_id_cdrom_id_c
@@ -0,0 +1,11 @@
+--- udev-142.orig/extras/cdrom_id/cdrom_id.c 2009-04-23 15:02:36.000000000 +0200
++++ udev-142/extras/cdrom_id/cdrom_id.c 2009-12-12 00:20:04.000000000 +0100
+@@ -140,7 +140,7 @@ static void scsi_cmd_set(struct udev *ud
+ cmd->sg_io.mx_sb_len = sizeof(cmd->_sense);
+ cmd->sg_io.cmdp = cmd->cgc.cmd;
+ cmd->sg_io.sbp = cmd->_sense.u;
+- cmd->sg_io.flags = SG_FLAG_LUN_INHIBIT | SG_FLAG_DIRECT_IO;
++ cmd->sg_io.flags = SG_FLAG_UNUSED_LUN_INHIBIT | SG_FLAG_DIRECT_IO;
+ }
+ cmd->sg_io.cmd_len = i + 1;
+ cmd->cgc.cmd[i] = arg;