mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user