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 --- Src/system.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Src/system.h') 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 1.4.1