Kaydet (Commit) 9c117d08 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

MinGW: work around _FILE_OFFSET_BITS incomp between Berkeleydb and LO

üst 0f1e33c5
--- misc/db-4.7.25.NC/dist/configure 2012-03-30 00:25:17.456408946 +0200
+++ misc/build/db-4.7.25.NC/dist/configure 2012-03-30 00:24:44.344633205 +0200
@@ -34776,7 +34776,7 @@
no | unknown) ;;
*)
cat >>confdefs.h <<_ACEOF
-#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
+#define _FILE_OFFSET_BITS 32
_ACEOF
;;
esac
......@@ -59,6 +59,12 @@ ADDITIONAL_FILES= \
# not needed for win32. comment out when causing problems...
.IF "$(GUI)$(COM)"=="WNTGCC"
PATCH_FILES=db-4.7.25-mingw.patch
PATCH_FILES += db-4.7.25.NC-mingw32hack.patch
# otherwise, db-4.7.25.NC/dist/configure decides for _FILE_OFFSET_BITS=64,
# which causes /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h to not
# define _USE_32BIT_TIME_T, so that berkeleydb uses a 64 bit time_t while
# the rest of LibreOffice uses a 32 bit time_t, which causes problems as
# there is e.g. a member time_t timestamp of struct __db in db.h
.ELSE
PATCH_FILES=\
db-4.7.25.patch \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment