forked from pool/sedutil
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
|
Index: sedutil-1.15.1/configure.ac
|
||
|
===================================================================
|
||
|
--- sedutil-1.15.1.orig/configure.ac
|
||
|
+++ sedutil-1.15.1/configure.ac
|
||
|
@@ -14,6 +14,7 @@ AC_PROG_CC
|
||
|
|
||
|
# Checks for header files.
|
||
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h stdint.h stdlib.h string.h sys/ioctl.h unistd.h])
|
||
|
+AC_CHECK_HEADERS([linux/nvme.h linux/nvme_ioctl.h])
|
||
|
|
||
|
# Checks for typedefs, structures, and compiler characteristics.
|
||
|
AC_CHECK_HEADER_STDBOOL
|
||
|
Index: sedutil-1.15.1/linux/DtaDevLinuxNvme.h
|
||
|
===================================================================
|
||
|
--- sedutil-1.15.1.orig/linux/DtaDevLinuxNvme.h
|
||
|
+++ sedutil-1.15.1/linux/DtaDevLinuxNvme.h
|
||
|
@@ -18,8 +18,9 @@ along with sedutil. If not, see <http:/
|
||
|
|
||
|
* C:E********************************************************************** */
|
||
|
#pragma once
|
||
|
+#include <config.h>
|
||
|
#include <linux/version.h>
|
||
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
|
||
|
+#ifdef HAVE_LINUX_NVME_IOCTL_H
|
||
|
#include <linux/nvme_ioctl.h>
|
||
|
#else
|
||
|
#include <linux/nvme.h>
|