]> git.sesse.net Git - vlc/commitdiff
Contribs: fix compilation for Android
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 17 Sep 2014 13:25:36 +0000 (15:25 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 17 Sep 2014 13:28:59 +0000 (15:28 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
contrib/src/gpg-error/gpgerror-android.patch [new file with mode: 0644]
contrib/src/gpg-error/rules.mak

diff --git a/contrib/src/gpg-error/gpgerror-android.patch b/contrib/src/gpg-error/gpgerror-android.patch
new file mode 100644 (file)
index 0000000..3b7b43d
--- /dev/null
@@ -0,0 +1,14 @@
+--- libgpg-error/src/gpgrt-int.h.orig  2014-09-17 15:23:22.992333706 +0200
++++ libgpg-error/src/gpgrt-int.h       2014-09-17 15:23:52.772783925 +0200
+@@ -105,9 +105,9 @@
+ int _gpgrt_fflush (gpgrt_stream_t stream);
+ int _gpgrt_fseek (gpgrt_stream_t stream, long int offset, int whence);
+-int _gpgrt_fseeko (gpgrt_stream_t stream, off_t offset, int whence);
++int _gpgrt_fseeko (gpgrt_stream_t stream, gpgrt_off_t offset, int whence);
+ long int _gpgrt_ftell (gpgrt_stream_t stream);
+-off_t _gpgrt_ftello (gpgrt_stream_t stream);
++gpgrt_off_t _gpgrt_ftello (gpgrt_stream_t stream);
+ void _gpgrt_rewind (gpgrt_stream_t stream);
+ int _gpgrt_fgetc (gpgrt_stream_t stream);
index 7fc095895c48d1edd1adfd79c76d9e5398a8a637..7fb6bddb1f599415102b80874fc3f6d4d5a7521e 100644 (file)
@@ -13,6 +13,7 @@ ifdef HAVE_WIN32
        $(APPLY) $(SRC)/gpg-error/windres-make.patch
 endif
        $(APPLY) $(SRC)/gpg-error/missing-unistd-include.patch
+       $(APPLY) $(SRC)/gpg-error/gpgerror-android.patch
        $(MOVE)
        cp $@/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h $@/src/syscfg/lock-obj-pub.linux-android.h
 ifdef HAVE_IOS