forked from pool/sedutil
Marcus Meissner
faf3134176
I want to maintain sedutil in Factory and would like to use Base:System as the devel/feeder project. OBS-URL: https://build.opensuse.org/request/show/636836 OBS-URL: https://build.opensuse.org/package/show/Base:System/sedutil?expand=0&rev=1
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>
|