termux-packages/packages/fish/env_universal_common.cpp.patch

41 lines
1.3 KiB
Diff
Raw Normal View History

2015-07-13 08:54:11 +02:00
diff -u -r ../fish-2.2.0/env_universal_common.cpp ./env_universal_common.cpp
--- ../fish-2.2.0/env_universal_common.cpp 2015-07-03 15:46:59.000000000 -0400
2015-10-01 01:16:05 +02:00
+++ ./src/env_universal_common.cpp 2015-07-13 02:16:14.591286575 -0400
2015-07-13 08:54:11 +02:00
@@ -1089,6 +1089,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) */
@@ -1251,6 +1252,7 @@
}
}
};
+#endif
/* A notifyd-based notifier. Very straightforward. */
class universal_notifier_notifyd_t : public universal_notifier_t
@@ -1572,7 +1574,9 @@
} 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}
};
@@ -1632,8 +1636,10 @@
}
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();