mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
sysutils/smartmontools: unbreak in 12-CURRENT
Between __FreeBSD_version 1200058 and 1200081 fields opc and fuse of struct nvme_command (sys/dev/nvme/nvme.h) where merged under opc_fuse, but in r338182 this change was undone and this port broke. Update patch to fix it so it works regardless of the revision we check out. PR: 230867 Submitted by: ohartmann@walstatt.org Approved by: tcberner (mentor), maintainer (timeout, 2 weeks) Differential Revision: https://reviews.freebsd.org/D16908
This commit is contained in:
parent
85efb6936c
commit
7181b82ac1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=479196
@ -22,7 +22,7 @@
|
||||
struct nvme_pt_command pt;
|
||||
memset(&pt, 0, sizeof(pt));
|
||||
|
||||
+#if __FreeBSD_version >= 1200058
|
||||
+#if __FreeBSD_version >= 1200058 && __FreeBSD_version < 1200081
|
||||
+ pt.cmd.opc_fuse = NVME_CMD_SET_OPC(in.opcode);
|
||||
+#else
|
||||
pt.cmd.opc = in.opcode;
|
||||
|
Loading…
Reference in New Issue
Block a user