avformat/os_support: include unistd.h before defining lseek to lseek64 on android
[ffmpeg.git] / libavformat / os_support.h
index 0b9fd49..bc72e96 100644 (file)
@@ -57,6 +57,9 @@
 #endif
 
 #ifdef __ANDROID__
+#  if HAVE_UNISTD_H
+#    include <unistd.h>
+#  endif
 #  ifdef lseek
 #   undef lseek
 #  endif