Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh compiling on Apple OSX v. 10.4.x

This worked on Mac OS 10.3 and 10.4 for me.  Thanks!

On May 23, 2005, at 9:33 AM, Peter Stephenson wrote:

I don't know what definitions to use, but this shouldn't break
anything.  I don't think autoconf allows you to undefine values; the
easiest way to fix it there would be to avoid testing for poll() and
poll.h at all on the appropriate systems.

Index: Src/system.h
RCS file: /cvsroot/zsh/zsh/Src/system.h,v
retrieving revision 1.30
diff -u -r1.30 system.h
--- Src/system.h    24 Feb 2005 16:53:12 -0000    1.30
+++ Src/system.h    23 May 2005 13:41:18 -0000
@@ -300,6 +300,15 @@
 # include <sys/socket.h>

+#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
 # include <sys/filio.h>

-- Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.


Messages sorted by: Reverse Date, Date, Thread, Author