Fixed Android build error
authorSam Lantinga <slouken@libsdl.org>
Tue, 21 Aug 2018 10:25:30 -0700
changeset 12124a6757eff6569
parent 12123 81021ad636c7
child 12125 12035d408935
Fixed Android build error
src/hidapi/android/hid.cpp
     1.1 --- a/src/hidapi/android/hid.cpp	Mon Aug 20 21:19:17 2018 -0700
     1.2 +++ b/src/hidapi/android/hid.cpp	Tue Aug 21 10:25:30 2018 -0700
     1.3 @@ -10,6 +10,7 @@
     1.4  #include <android/log.h>
     1.5  #include <pthread.h>
     1.6  #include <errno.h>	// For ETIMEDOUT and ECONNRESET
     1.7 +#include <stdlib.h> // For malloc() and free()
     1.8  
     1.9  #define TAG "hidapi"
    1.10  #ifdef DEBUG