fish: Ensure that strategy_shmem_polling is never defined
authorFredrik Fornwall <fredrik@fornwall.net>
Sat, 25 Jul 2015 21:56:10 +0000 (17:56 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 25 Jul 2015 21:56:10 +0000 (17:56 -0400)
packages/fish/env_universal_common.h.patch [new file with mode: 0644]

diff --git a/packages/fish/env_universal_common.h.patch b/packages/fish/env_universal_common.h.patch
new file mode 100644 (file)
index 0000000..842acf0
--- /dev/null
@@ -0,0 +1,14 @@
+diff -u -r ../fish-2.2.0/env_universal_common.h ./env_universal_common.h
+--- ../fish-2.2.0/env_universal_common.h       2015-07-03 15:46:59.000000000 -0400
++++ ./env_universal_common.h   2015-07-25 17:52:47.555388223 -0400
+@@ -123,8 +123,10 @@
+         // Default meta-strategy to use the 'best' notifier for the system
+         strategy_default,
+         
++#ifndef __ANDROID__
+         // Use a value in shared memory. Simple, but requires polling and therefore semi-frequent wakeups.
+         strategy_shmem_polling,
++#endif
+         
+         // Strategy that uses a named pipe. Somewhat complex, but portable and doesn't require polling most of the time.
+         strategy_named_pipe,