Commit 0d22559e307eb0b910388615c9d32dfa280fcb01

Sam Lantinga 2018-08-21T10:25:30

Fixed Android build error

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