Peter Seiderer | 806ca1e | 2016-02-18 22:46:58 +0100 | [diff] [blame] | 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 | |
| 6 | Add missing include, fixes: |
| 7 | |
| 8 | mouse.cpp:58:37: error: 'memset' was not declared in this scope |
| 9 | mouse.cpp:60:64: error: 'strncpy' was not declared in this scope |
| 10 | |
| 11 | Signed-off-by: Peter Seiderer <ps.report@gmx.net> |
| 12 | --- |
| 13 | src/mouse.cpp | 1 + |
| 14 | 1 file changed, 1 insertion(+) |
| 15 | |
| 16 | diff --git a/src/mouse.cpp b/src/mouse.cpp |
| 17 | index 0435dd9..f173137 100644 |
| 18 | --- a/src/mouse.cpp |
| 19 | +++ b/src/mouse.cpp |
| 20 | @@ -27,6 +27,7 @@ DEFINE_INSTANCE(Mouse) |
| 21 | #include <stddef.h> |
| 22 | #include <unistd.h> |
| 23 | #include <stdlib.h> |
| 24 | +#include <string.h> |
| 25 | #include <gpm.h> |
| 26 | #include <sys/ioctl.h> |
| 27 | #include <sys/types.h> |
| 28 | -- |
| 29 | 2.1.4 |
| 30 | |