about summary refs log tree commit diff
path: root/Src/system.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-05-23 14:41:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-05-23 14:41:16 +0000
commit3acf90f67e8f94ec501af9973f05721e492e433b (patch)
tree3e972002161c7a2c15b3b545e8c5dd350cea6329 /Src/system.h
parent8a24c5a5ee55ddec6896540de2e042abe009ed1e (diff)
downloadzsh-3acf90f67e8f94ec501af9973f05721e492e433b.tar.gz
zsh-3acf90f67e8f94ec501af9973f05721e492e433b.tar.xz
zsh-3acf90f67e8f94ec501af9973f05721e492e433b.zip
21270: don't use poll() on Apple
Diffstat (limited to 'Src/system.h')
-rw-r--r--Src/system.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h
index 7fc4a7e65..a57e67fb6 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -300,6 +300,15 @@ struct timezone {
 # include <sys/socket.h>
 #endif
 
+#if defined(__APPLE__) && defined(HAVE_SELECT)
+/*
+ * Prefer select() to poll() on MacOS X since poll() is known
+ * to be problematic in 10.4
+ */
+#undef HAVE_POLL
+#undef HAVE_POLL_H
+#endif
+
 #ifdef HAVE_SYS_FILIO_H
 # include <sys/filio.h>
 #endif