Skip to content

Commit 8913620

Browse files
committed
PhysicalDisk (NetBSD): fixes building on older systems
1 parent 2a103f6 commit 8913620

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/detection/physicaldisk/physicaldisk_nbsd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options)
117117
continue;
118118
}
119119

120+
#ifdef SINQ_EVPD // Available since NetBSD 11.0
120121
struct {
121122
struct scsipi_inquiry_evpd_header header;
122123
struct scsipi_inquiry_evpd_serial body;
@@ -135,6 +136,7 @@ const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options)
135136
}
136137
ffStrbufTrimRight(&device->serial, ' ');
137138
}
139+
#endif
138140

139141
struct scsi_mode_parameter_header_6 mode = {};
140142
req = (scsireq_t) {

0 commit comments

Comments
 (0)