0003-tools-blktap2-Fix-missing-header-file.patch 959 B

12345678910111213141516171819202122232425262728293031
  1. From 1226317351b4154ed6460b778f2490614f47b9d4 Mon Sep 17 00:00:00 2001
  2. From: Alistair Francis <alistair.francis@xilinx.com>
  3. Date: Tue, 20 Dec 2016 11:46:59 -0800
  4. Subject: [PATCH] tools/blktap2: Fix missing header file
  5. To avoid build errors relating to missing declarations of ssize_t add
  6. the appropriate header file to atomic.h.
  7. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
  8. Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
  9. Acked-by: Wei Liu <wei.liu2@citrix.com>
  10. ---
  11. tools/blktap2/include/atomicio.h | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. diff --git a/tools/blktap2/include/atomicio.h b/tools/blktap2/include/atomicio.h
  14. index 7eccf20..5a1120e 100644
  15. --- a/tools/blktap2/include/atomicio.h
  16. +++ b/tools/blktap2/include/atomicio.h
  17. @@ -25,6 +25,8 @@
  18. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  19. */
  20. +#include <sys/types.h>
  21. +
  22. /*
  23. * Ensure all of data on socket comes through. f==read || f==vwrite
  24. */
  25. --
  26. 2.7.4