Re: [FFmpeg-devel] [PATCH] lavu/file: fix build on Android NDK with unified headers

2017-09-26 Thread Rodger Combs
I used this rather absurd configure invocation: BINDIR=$(realpath $(dirname $(ndk-which gcc))) NDKDIR=$(dirname $(dirname $(dirname $(dirname $(dirname $BINDIR) TARGET=16 ARCH=arm TRIPLE=arm-linux-androideabi SUFFIX=-4.9 PLATARCH=arm ../configure \ --enable-cross-compile \ --arch=$ARCH \ --cr

Re: [FFmpeg-devel] [PATCH] lavu/file: fix build on Android NDK with unified headers

2017-09-26 Thread Carl Eugen Hoyos
2017-09-26 3:52 GMT+02:00 Rodger Combs : > +# if defined(__USE_FILE_OFFSET64) && __ANDROID_API__ < 21 && > !defined(__LP64__) > +# ifdef mmap > +#undef mmap > +# endif > +void* mmap(void*, size_t, int, int, int, __kernel_off_t); How can this issue be reproduced? Shouldn't this be check

[FFmpeg-devel] [PATCH] lavu/file: fix build on Android NDK with unified headers

2017-09-25 Thread Rodger Combs
--- libavdevice/fbdev_enc.c | 1 + libavformat/os_support.h | 6 ++ libavutil/file.c | 1 + 3 files changed, 8 insertions(+) diff --git a/libavdevice/fbdev_enc.c b/libavdevice/fbdev_enc.c index b4e5f84975..a9be608383 100644 --- a/libavdevice/fbdev_enc.c +++ b/libavdevice/fbdev_enc.c