office-gobmx/external/firebird/firebird-macosx-sandbox.patch.1
Tor Lillqvist 22e89d2ccd tdf#140332: Can't use System V semaphores in a sandboxed macOS process
See
https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html
, "Note: System V semaphores are not supported in sandboxed apps".

So use POSIX semaphores instead.

Change-Id: I37c910cf13b868ab15fe31f90e42d24a9a24eeb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111239
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-02-19 22:45:28 +01:00

13 lines
288 B
Diff

-*- Mode: Diff -*-
--- firebird/src/common/isc_s_proto.h
+++ firebird/src/common/isc_s_proto.h
@@ -37,6 +37,8 @@
// Firebird platform-specific synchronization data structures
#if defined(DARWIN)
+#define USE_POSIX_SEMAPHORE
+#define USE_SHARED_FUTEX
#define USE_FILELOCKS
#endif