Browse Source

Fixed Android build error

Sam Lantinga 6 years ago
parent
commit
0d22559e30
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/hidapi/android/hid.cpp

+ 1 - 0
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