Commit fb0e68ae0f01fa951a8481d4a1f893d4cec1a6a3

Sam Lantinga 2018-09-25T08:23:57

Fixed building with newer Android NDK

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/hidapi/android/hid.cpp b/src/hidapi/android/hid.cpp
index a8c6b1f..fbe1832 100644
--- a/src/hidapi/android/hid.cpp
+++ b/src/hidapi/android/hid.cpp
@@ -9,9 +9,9 @@
 #include <jni.h>
 #include <android/log.h>
 #include <pthread.h>
-#include <stdlib.h>
 #include <errno.h>	// For ETIMEDOUT and ECONNRESET
 #include <stdlib.h> // For malloc() and free()
+#include <string.h>	// For memcpy()
 
 #define TAG "hidapi"
 #ifdef DEBUG