diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-01-09 02:40:08 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-01-10 00:05:17 +0000 |
commit | ee7912c0caceb23eb92c4cfa500cc0857fd336ca (patch) | |
tree | 9c7d221a97c90f654f7672e97004f137d92fd3bc /scsi.c | |
parent | eac07b2bd689ef4b9ad2d8a25c6893f1afeec292 (diff) | |
download | strace-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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, |