aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2016-07-07 04:09:16 +0800
committersbruno <sbruno@FreeBSD.org>2016-07-07 04:09:16 +0800
commit9413eef41c59b480c5d42063cac469e235a11996 (patch)
treebe014b5b9fb0514b58e8a777f2575ca9108a07b9
parent3349eb3116afba1070cb6727da1f8cfaeafc8e1e (diff)
downloadfreebsd-ports-graphics-9413eef41c59b480c5d42063cac469e235a11996.tar.gz
freebsd-ports-graphics-9413eef41c59b480c5d42063cac469e235a11996.tar.zst
freebsd-ports-graphics-9413eef41c59b480c5d42063cac469e235a11996.zip
sysutils/smartmontools
- Fix build for o/s releases > 1100110 and #include <dev/nvme/nvme.h> to pickup the structures definitions used in os_freebsd.cpp.
-rw-r--r--sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h b/sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h
index 4cd8a5909c3..5d59abf8bef 100644
--- a/sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h
+++ b/sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h
@@ -1,5 +1,5 @@
---- freebsd_nvme_ioctl.h.orig 2016-03-28 09:25:56.000000000 -0700
-+++ freebsd_nvme_ioctl.h 2016-06-15 20:43:22.389493000 -0700
+--- freebsd_nvme_ioctl.h.orig 2016-03-28 16:25:56 UTC
++++ freebsd_nvme_ioctl.h
@@ -31,6 +31,7 @@
#define NVME_PASSTHROUGH_CMD _IOWR('n', 0, struct nvme_pt_command)
@@ -8,10 +8,12 @@
struct nvme_command
{
/* dword 0 */
-@@ -143,6 +144,7 @@
+@@ -143,6 +144,9 @@ struct nvme_pt_command {
*/
struct mtx * driver_lock;
};
++#else
++#include <dev/nvme/nvme.h>
+#endif
#define nvme_completion_is_error(cpl) \