sysutils/bsdisks: Fix build on latest 16-CURRENT

src 8c35de4982d8 added power condition support. That commit broke this
port by adding an argument to scsi_start_stop().
This commit is contained in:
Cy Schubert
2025-12-05 05:36:31 -08:00
parent ddf13948db
commit 51cb57c4fe
+12
View File
@@ -0,0 +1,12 @@
--- camcontrol.c.orig 2025-07-31 07:59:58 UTC
+++ camcontrol.c
@@ -266,6 +266,9 @@ static void stopUnit(struct cam_device *cam_dev)
/* start/stop */ 0,
/* load_eject */ 0,
/* immediate */ 0,
+#if __FreeBSD_version >= 1600004
+ /* power_condition */ SSS_PC_START_VALID,
+#endif
/* sense_len */ SSD_FULL_SIZE,
/* timeout */ 30000);