diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-10 02:30:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-10 02:32:32 +0200 |
commit | 27123a77c111eed272a11791354831961bc6507c (patch) | |
tree | 073ea405b2ab13390615b4d689e7cb4f1ffd545b | |
parent | 9665a0fdf680246468bf3e55524c9b4e610ab506 (diff) | |
download | ffmpeg-27123a77c111eed272a11791354831961bc6507c.tar.gz |
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 <michaelni@gmx.at>
-rw-r--r-- | libavformat/os_support.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <unistd.h> +# endif # ifdef lseek # undef lseek # endif |