diff options
Diffstat (limited to '0003-Do-not-replace-ftell-and-fseek.patch')
-rw-r--r-- | 0003-Do-not-replace-ftell-and-fseek.patch | 20 |
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 |