Blame SOURCES/0031-Manually-define-NVME_IOCTL_ID.patch

38ab4d
From 1bec5911f25f9d7990cd1c92c1376a2aa36fbd20 Mon Sep 17 00:00:00 2001
38ab4d
From: Peter Jones <pjones@redhat.com>
38ab4d
Date: Mon, 6 Jun 2016 15:18:57 -0400
38ab4d
Subject: [PATCH 31/31] Manually define NVME_IOCTL_ID.
38ab4d
38ab4d
The kernel has changed and the include file isn't at the same place
38ab4d
between various arches.  Since we just need the ID, defined it instead
38ab4d
of worrying about where it's from.
38ab4d
38ab4d
Related: rhbz#1271412
38ab4d
38ab4d
Signed-off-by: Peter Jones <pjones@redhat.com>
38ab4d
---
38ab4d
 src/lib/scsi_ioctls.c | 5 ++++-
38ab4d
 1 file changed, 4 insertions(+), 1 deletion(-)
38ab4d
38ab4d
diff --git a/src/lib/scsi_ioctls.c b/src/lib/scsi_ioctls.c
38ab4d
index 3aaa933..2e0b5b4 100644
38ab4d
--- a/src/lib/scsi_ioctls.c
38ab4d
+++ b/src/lib/scsi_ioctls.c
38ab4d
@@ -24,9 +24,12 @@
38ab4d
 #include <sys/stat.h>
38ab4d
 #include <fcntl.h>
38ab4d
 #include <sys/ioctl.h>
38ab4d
-#include <linux/nvme.h>
38ab4d
 #include "scsi_ioctls.h"
38ab4d
 
38ab4d
+#ifndef NVME_IOCTL_ID
38ab4d
+#define NVME_IOCTL_ID		_IO('N', 0x40)
38ab4d
+#endif
38ab4d
+
38ab4d
 int
38ab4d
 get_nvme_ns_id(int fd, uint32_t *ns_id)
38ab4d
 {
38ab4d
-- 
38ab4d
2.7.4
38ab4d