summarylogtreecommitdiffstats
path: root/0003-Do-not-replace-ftell-and-fseek.patch
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2024-03-19 01:41:14 -0300
committerGonzalo Exequiel Pedone2024-03-19 01:41:14 -0300
commit13841a888f824ec27e65c815ddc06c8e4974a118 (patch)
treee1093c362956408b519ecb43b5cf300257600b08 /0003-Do-not-replace-ftell-and-fseek.patch
parent2ebac5731ebae361025378498940052b8cc2b531 (diff)
downloadaur-android-aarch64-x264.tar.gz
Package updated.
Diffstat (limited to '0003-Do-not-replace-ftell-and-fseek.patch')
-rw-r--r--0003-Do-not-replace-ftell-and-fseek.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/0003-Do-not-replace-ftell-and-fseek.patch b/0003-Do-not-replace-ftell-and-fseek.patch
new file mode 100644
index 000000000000..691514907a2c
--- /dev/null
+++ b/0003-Do-not-replace-ftell-and-fseek.patch
@@ -0,0 +1,20 @@
+--- a/configure
++++ b/configure
+@@ -1289,17 +1289,6 @@
+ cc_check '' -fno-zero-initialized-in-bss && CFLAGS="$CFLAGS -fno-zero-initialized-in-bss"
+ fi
+
+-if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
+- define fseek fseeko
+- define ftell ftello
+-elif cc_check "stdio.h" "" "fseeko64(stdin,0,0);" ; then
+- define fseek fseeko64
+- define ftell ftello64
+-elif cc_check "stdio.h" "" "_fseeki64(stdin,0,0);" ; then
+- define fseek _fseeki64
+- define ftell _ftelli64
+-fi
+-
+ if cc_check '' -Wshadow ; then
+ CFLAGS="-Wshadow $CFLAGS"
+ fi