avformat/os_support: include unistd.h before defining lseek to lseek64 on android
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Oct 2014 00:30:39 +0000 (02:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Oct 2014 00:32:32 +0000 (02:32 +0200)
fixes build failure

Found-by: James Almer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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