소스 검색

Fixed Android build error

Sam Lantinga 7 년 전
부모
커밋
0d22559e30
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/hidapi/android/hid.cpp

+ 1 - 0
src/hidapi/android/hid.cpp

@@ -10,6 +10,7 @@
 #include <android/log.h>
 #include <android/log.h>
 #include <pthread.h>
 #include <pthread.h>
 #include <errno.h>	// For ETIMEDOUT and ECONNRESET
 #include <errno.h>	// For ETIMEDOUT and ECONNRESET
+#include <stdlib.h> // For malloc() and free()
 
 
 #define TAG "hidapi"
 #define TAG "hidapi"
 #ifdef DEBUG
 #ifdef DEBUG