diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2017-10-22 17:32:39 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2017-10-22 17:32:39 +0000 |
commit | 9a9577a3b7f0b0c82ad0e77b9f16b3afa238322c (patch) | |
tree | 9d756acc6206a1dbc5c0777efc8ce6f6a3b9366b /lib/sg_pt_linux.c | |
parent | 23712b6e6d5ee067cf7a740ef10e4dbea90dd179 (diff) | |
download | sg3_utils-9a9577a3b7f0b0c82ad0e77b9f16b3afa238322c.tar.gz |
sg_lib: add sg_ll_log_sense_v2(), sg_ll_mode_sense10_v2() and sg_ll_receive_diag_v2(); documentation cleanup; sg_ses: filter join output on dpage element presence (AES dpage)
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@722 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_linux.c')
-rw-r--r-- | lib/sg_pt_linux.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sg_pt_linux.c b/lib/sg_pt_linux.c index 76773fa1..914570b2 100644 --- a/lib/sg_pt_linux.c +++ b/lib/sg_pt_linux.c @@ -5,7 +5,7 @@ * license that can be found in the BSD_LICENSE file. */ -/* sg_pt_linux version 1.27 20171005 */ +/* sg_pt_linux version 1.28 20171019 */ #include <stdio.h> @@ -18,8 +18,11 @@ #include <errno.h> #include <fcntl.h> #include <sys/ioctl.h> -#include <sys/types.h> #include <sys/stat.h> +#include <sys/sysmacros.h> /* to define 'major' */ +#ifndef major +#include <sys/types.h> +#endif #ifdef HAVE_CONFIG_H |