0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-24 02:36:16 +00:00
termux-packages/disabled-packages/kphp/server-php-master-restart.h.patch
Tee KOBAYASHI 1bbe66e98a kphp: Disabled
Incompatible with latest libuber-h3. A whole bunch of patches are quite
unmaintainable.

kphp-timelib is also disabled as only kphp depends on it.
2022-11-17 18:08:03 +00:00

15 lines
563 B
Diff

--- a/server/php-master-restart.h
+++ b/server/php-master-restart.h
@@ -51,7 +51,11 @@
#if !defined(__APPLE__)
static constexpr size_t MASTER_DATA_T_SIZEOF = 272;
+#ifdef __ANDROID__
+static constexpr size_t SHARED_DATA_T_SIZEOF = 648;
+#else
static constexpr size_t SHARED_DATA_T_SIZEOF = 656;
+#endif
static_assert(sizeof(master_data_t) == MASTER_DATA_T_SIZEOF, "Layout of this struct must be the same in any KPHP version unless shared data magic is used, "
"otherwise restart won't work");