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.
This commit is contained in:
Sean Bruno
2016-07-06 20:09:16 +00:00
parent d25ea0446c
commit 5c1354d1cd

View File

@@ -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) \