Browse Source

Fixed building with newer Android NDK

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

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