You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
406 B

  1. --- a/hdparm.h
  2. +++ b/hdparm.h
  3. @@ -2,6 +2,7 @@
  4. //#undef __KERNEL_STRICT_NAMES
  5. #include <linux/types.h>
  6. +#include <sys/types.h>
  7. #if !defined(__GNUC__) && !defined(__attribute__)
  8. #define __attribute__(x)
  9. --- a/sysfs.c
  10. +++ b/sysfs.c
  11. @@ -12,6 +12,7 @@
  12. #include <stdio.h>
  13. #include <fcntl.h>
  14. #include <errno.h>
  15. +#include <limits.h>
  16. #include <dirent.h>
  17. #include <sys/stat.h>
  18. #include <linux/types.h>