0002-mouse.cpp-fix-musl-compile.patch 782 B

123456789101112131415161718192021222324252627282930
  1. From a34dba99aff2994269ee347da67feb7ede9b1a67 Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Thu, 18 Feb 2016 22:32:38 +0100
  4. Subject: [PATCH] mouse.cpp: fix musl compile
  5. Add missing include, fixes:
  6. mouse.cpp:58:37: error: 'memset' was not declared in this scope
  7. mouse.cpp:60:64: error: 'strncpy' was not declared in this scope
  8. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  9. ---
  10. src/mouse.cpp | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/src/mouse.cpp b/src/mouse.cpp
  13. index 0435dd9..f173137 100644
  14. --- a/src/mouse.cpp
  15. +++ b/src/mouse.cpp
  16. @@ -27,6 +27,7 @@ DEFINE_INSTANCE(Mouse)
  17. #include <stddef.h>
  18. #include <unistd.h>
  19. #include <stdlib.h>
  20. +#include <string.h>
  21. #include <gpm.h>
  22. #include <sys/ioctl.h>
  23. #include <sys/types.h>
  24. --
  25. 2.1.4