diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-09-06 22:10:58 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-09-07 11:50:12 +0200 |
commit | e07e37569e7db08c82d73d582fb3a488035acd2f (patch) | |
tree | 767ade1939fc27b8a786e5fd742dd2f5cdeb2026 /external/gpgmepp/w32-add-initializer.patch.1 | |
parent | Flatpak: Upgrade to 21.08 runtime, disable Skia (diff) | |
download | core-e07e37569e7db08c82d73d582fb3a488035acd2f.tar.gz core-e07e37569e7db08c82d73d582fb3a488035acd2f.zip |
tdf#144340: fix FB configure on Windows
./configure runs on Windows, and sets value of FB_ALIGNMENT,
a define that affects the layout of FB's sort memory pool.
Trying to include <semaphore.h> fails on Windows; the test in
./configure considers error value (equal to 2) as the value of
the alignment (which should be 4 or 8 depending on arch). This
makes the memory misaligned, chunks overlapping and re-written
during the sort, memory corrupt, and so on.
Removing the include (which is documented in a commit adding a
similar include [1] to be needed for m68k) fixes detection.
Additionally this cleans up the code added to config.h.in from
autoconfig_msvc.h, because the former is auto-generated during
configure, and the values get re-written in all occurrences of
respective defines anyway.
[1] https://github.com/FirebirdSQL/firebird/commit/7ba46163c74211ce4bf1051ee9998db58cb2f396
Change-Id: I8cdc5c764385a04efd130af09138149c748341fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121753
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit c7b5e6566d9b24a0a996c739a945004d9aadee2f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121755
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'external/gpgmepp/w32-add-initializer.patch.1')
0 files changed, 0 insertions, 0 deletions