aboutsummaryrefslogtreecommitdiff
path: root/src/sg_read.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-10-22 17:32:39 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-10-22 17:32:39 +0000
commit9a9577a3b7f0b0c82ad0e77b9f16b3afa238322c (patch)
tree9d756acc6206a1dbc5c0777efc8ce6f6a3b9366b /src/sg_read.c
parent23712b6e6d5ee067cf7a740ef10e4dbea90dd179 (diff)
downloadsg3_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 'src/sg_read.c')
-rw-r--r--src/sg_read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sg_read.c b/src/sg_read.c
index 2cf8212d..1eb04110 100644
--- a/src/sg_read.c
+++ b/src/sg_read.c
@@ -36,9 +36,11 @@
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>
#include <sys/ioctl.h>
-#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
+#ifndef major
+#include <sys/types.h>
+#endif
#include <sys/mman.h>
#include <sys/time.h>
#include <linux/major.h>