1 diff -u -r ../fish-2.4b1/src/env_universal_common.cpp ./src/env_universal_common.cpp
2 --- ../fish-2.4b1/src/env_universal_common.cpp 2016-10-18 10:17:06.000000000 -0400
3 +++ ./src/env_universal_common.cpp 2016-10-19 17:42:06.900520935 -0400
8 - std::string tmpdir = "/tmp/fish.";
9 + std::string tmpdir = "@TERMUX_PREFIX@/tmp/fish.";
11 if (check_runtime_path(tmpdir.c_str()) != 0) {
18 class universal_notifier_shmem_poller_t : public universal_notifier_t {
19 // This is what our shared memory looks like. Everything here is stored in network byte order
22 return usec_per_sec / 3; // 3 times a second
27 /// A notifyd-based notifier. Very straightforward.
28 class universal_notifier_notifyd_t : public universal_notifier_t {
31 universal_notifier_t::notifier_strategy_t strat;
32 } options[] = {{"default", universal_notifier_t::strategy_default},
34 {"shmem", universal_notifier_t::strategy_shmem_polling},
36 {"pipe", universal_notifier_t::strategy_named_pipe},
37 {"notifyd", universal_notifier_t::strategy_notifyd}};
38 const size_t opt_count = sizeof options / sizeof *options;
39 @@ -1463,9 +1467,11 @@
40 strat = resolve_default_strategy();
44 case strategy_shmem_polling: {
45 return new universal_notifier_shmem_poller_t();
48 case strategy_notifyd: {
49 return new universal_notifier_notifyd_t();