From 3acf90f67e8f94ec501af9973f05721e492e433b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 23 May 2005 14:41:16 +0000 Subject: 21270: don't use poll() on Apple --- ChangeLog | 2 ++ Src/system.h | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index e49570469..4e77dc510 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-05-23 Peter Stephenson + * 21270: Src/system.h: don't use poll() on Apple. + * users/8863: Doc/Zsh/contrib.yo, Functions/Zle/which-command: enhanced which-command that traces the final command better. 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 #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 #endif -- cgit v1.2.3