X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fhddtemp.c;h=651de298877a3c9848f05e17d79ea7a67e34ebaa;hb=1297a3723f6c5a79e8148e56c249a1aa7d3c6f35;hp=8c4bc4aa9c36a4b1a5597ce0720ba73ede55f237;hpb=24db3832cf2d74fe5425de379d10dc73d141c2f9;p=collectd.git diff --git a/src/hddtemp.c b/src/hddtemp.c index 8c4bc4aa..651de298 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -314,6 +314,7 @@ static int hddtemp_init (void) case SCSI_DISK5_MAJOR: case SCSI_DISK6_MAJOR: case SCSI_DISK7_MAJOR: +#ifdef SCSI_DISK8_MAJOR case SCSI_DISK8_MAJOR: case SCSI_DISK9_MAJOR: case SCSI_DISK10_MAJOR: @@ -322,6 +323,7 @@ static int hddtemp_init (void) case SCSI_DISK13_MAJOR: case SCSI_DISK14_MAJOR: case SCSI_DISK15_MAJOR: +#endif /* SCSI_DISK8_MAJOR */ /* SCSI disks minors are multiples of 16. * Keep only those. */ if (minor % 16)