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.

30 lines
571 B

  1. diff --git a/usr/tgtd.h b/usr/tgtd.h
  2. index d8b2ac1..c6eee54 100644
  3. --- a/usr/tgtd.h
  4. +++ b/usr/tgtd.h
  5. @@ -9,6 +9,10 @@
  6. #include <systemd/sd-daemon.h>
  7. #endif
  8. +#ifndef __WORDSIZE
  9. +#include <sys/reg.h>
  10. +#endif
  11. +
  12. struct concat_buf;
  13. #define NR_SCSI_OPCODES 256
  14. diff --git a/usr/util.h b/usr/util.h
  15. index 0e34c35..3e2e63b 100644
  16. --- a/usr/util.h
  17. +++ b/usr/util.h
  18. @@ -16,6 +16,10 @@
  19. #include <limits.h>
  20. #include <linux/types.h>
  21. +#ifndef __WORDSIZE
  22. +#include <sys/reg.h>
  23. +#endif
  24. +
  25. #include "be_byteshift.h"
  26. #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))