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.

36 lines
643 B

  1. --- a/usr/tgtd.h
  2. +++ b/usr/tgtd.h
  3. @@ -9,6 +9,10 @@
  4. #include <systemd/sd-daemon.h>
  5. #endif
  6. +#ifndef __WORDSIZE
  7. +#include <sys/user.h>
  8. +#endif
  9. +
  10. struct concat_buf;
  11. #define NR_SCSI_OPCODES 256
  12. --- a/usr/util.h
  13. +++ b/usr/util.h
  14. @@ -16,6 +16,10 @@
  15. #include <limits.h>
  16. #include <linux/types.h>
  17. +#ifndef __WORDSIZE
  18. +#include <sys/user.h>
  19. +#endif
  20. +
  21. #include "be_byteshift.h"
  22. #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
  23. --- a/usr/libssc.c
  24. +++ b/usr/libssc.c
  25. @@ -23,6 +23,7 @@
  26. #include <string.h>
  27. #include <unistd.h>
  28. #include <stdio.h>
  29. +#include <fcntl.h>
  30. #include "bs_ssc.h"
  31. #include "ssc.h"
  32. #include "be_byteshift.h"