X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/2e54e151d46fd4e50037b1e24098059338b3bc58..295241d4043c55a41259b4846464e1668b2f6a5f:/packages/fish/src-env_universal_common.cpp.patch diff --git a/packages/fish/src-env_universal_common.cpp.patch b/packages/fish/src-env_universal_common.cpp.patch index 38b00226..f1004345 100644 --- a/packages/fish/src-env_universal_common.cpp.patch +++ b/packages/fish/src-env_universal_common.cpp.patch @@ -10,41 +10,3 @@ diff -u -r ../fish-2.4b1/src/env_universal_common.cpp ./src/env_universal_common tmpdir.append(uname); if (check_runtime_path(tmpdir.c_str()) != 0) { debug(0, -@@ -987,6 +987,7 @@ - return result; - } - -+#ifndef __ANDROID__ - class universal_notifier_shmem_poller_t : public universal_notifier_t { - // This is what our shared memory looks like. Everything here is stored in network byte order - // (big-endian). -@@ -1127,6 +1128,7 @@ - return usec_per_sec / 3; // 3 times a second - } - }; -+#endif - - /// A notifyd-based notifier. Very straightforward. - class universal_notifier_notifyd_t : public universal_notifier_t { -@@ -1410,7 +1412,9 @@ - const char *name; - universal_notifier_t::notifier_strategy_t strat; - } options[] = {{"default", universal_notifier_t::strategy_default}, -+#ifndef __ANDROID__ - {"shmem", universal_notifier_t::strategy_shmem_polling}, -+#endif - {"pipe", universal_notifier_t::strategy_named_pipe}, - {"notifyd", universal_notifier_t::strategy_notifyd}}; - const size_t opt_count = sizeof options / sizeof *options; -@@ -1463,9 +1467,11 @@ - strat = resolve_default_strategy(); - } - switch (strat) { -+#ifndef __ANDROID__ - case strategy_shmem_polling: { - return new universal_notifier_shmem_poller_t(); - } -+#endif - case strategy_notifyd: { - return new universal_notifier_notifyd_t(); - }