summaryrefslogtreecommitdiff
path: root/scsi.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-01-09 02:40:08 +0000
committerDmitry V. Levin <ldv@altlinux.org>2017-01-10 00:05:17 +0000
commitee7912c0caceb23eb92c4cfa500cc0857fd336ca (patch)
tree9c7d221a97c90f654f7672e97004f137d92fd3bc /scsi.c
parenteac07b2bd689ef4b9ad2d8a25c6893f1afeec292 (diff)
downloadstrace-ee7912c0caceb23eb92c4cfa500cc0857fd336ca.tar.gz
scsi: add fallback definitions for SG_* ioctl command constants
Unfortunately, <scsi/sg.h> from libc does not provide all constants recognized by the kernel. * xlat/scsi_sg_commands.in: New file. * scsi.c: Include "xlat/scsi_sg_commands.h" instead of providing a fallback definition of SG_IO.
Diffstat (limited to 'scsi.c')
-rw-r--r--scsi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scsi.c b/scsi.c
index 2f93de1e0..7da6dece2 100644
--- a/scsi.c
+++ b/scsi.c
@@ -32,9 +32,7 @@
# include <scsi/sg.h>
#endif
-#ifndef SG_IO
-# define SG_IO 0x2285
-#endif
+#include "xlat/scsi_sg_commands.h"
static int
decode_sg_io(struct tcb *const tcp, const uint32_t iid,