added missing #include <unistd.h> when compiling for Android

This commit is contained in:
Gregory Pakosz 2017-05-10 11:11:26 +02:00
parent 523c28a215
commit 08b7ee02a3

View File

@ -223,6 +223,7 @@ int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length)
#if defined(__ANDROID__) || defined(ANDROID) #if defined(__ANDROID__) || defined(ANDROID)
#include <fcntl.h> #include <fcntl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <unistd.h>
#endif #endif
WAI_NOINLINE WAI_NOINLINE