From 27123a77c111eed272a11791354831961bc6507c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 10 Oct 2014 02:30:39 +0200 Subject: [PATCH] avformat/os_support: include unistd.h before defining lseek to lseek64 on android fixes build failure Found-by: James Almer Signed-off-by: Michael Niedermayer --- libavformat/os_support.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 0b9fd49323..bc72e96a4c 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -57,6 +57,9 @@ #endif #ifdef __ANDROID__ +# if HAVE_UNISTD_H +# include +# endif # ifdef lseek # undef lseek # endif