summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f91cd5d)
raw | patch | inline | side by side (parent: f91cd5d)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 19 Feb 2008 11:24:53 +0000 (12:24 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 26 Feb 2008 10:27:30 +0000 (11:27 +0100) |
Some Linux versions don't seem to provide the major numbers 8 thru 15.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/hddtemp.c | patch | blob | history |
diff --git a/src/hddtemp.c b/src/hddtemp.c
index 0a93920b99e4ce7e42c3d8a0b06c6fc91373c8e8..1047077d2e098d5c692d22bda0241fe0381eb66d 100644 (file)
--- a/src/hddtemp.c
+++ b/src/hddtemp.c
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:
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)