From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11471 invoked from network); 23 May 2005 14:33:43 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 May 2005 14:33:43 -0000 Received: (qmail 21510 invoked from network); 23 May 2005 14:33:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 May 2005 14:33:37 -0000 Received: (qmail 362 invoked by alias); 23 May 2005 14:33:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21270 Received: (qmail 349 invoked from network); 23 May 2005 14:33:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 May 2005 14:33:33 -0000 Received: (qmail 21243 invoked from network); 23 May 2005 14:33:33 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 23 May 2005 14:33:22 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Mon, 23 May 2005 15:31:32 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 23 May 2005 15:34:57 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j4NEXJgS015749 for ; Mon, 23 May 2005 15:33:19 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j4NEXJ5q015746 for ; Mon, 23 May 2005 15:33:19 +0100 Message-Id: <200505231433.j4NEXJ5q015746@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: zsh compiling on Apple OSX v. 10.4.x In-reply-to: References: <294439D0-476D-43F3-8326-8209C1F3FE9C@chemistry.ucsc.edu> Date: Mon, 23 May 2005 15:33:18 +0100 From: Peter Stephenson X-OriginalArrivalTime: 23 May 2005 14:34:57.0656 (UTC) FILETIME=[97D59780:01C55FA4] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Felix Rosencrantz wrote: > It seems that on 10.4, it's better to use select() than poll() for the > terminal IO. Otherwise you get the broken behavior Bill mentions > Though configure for zsh hasn't been modified to know this. I'm not > sure how to modify the autoconfg code to change this code for 10.4. > But it would be nice to fix this, so that zsh builds properly on OSX > 10.4 w/o hand-edits to config.h. 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 #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 -- Peter Stephenson 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. **********************************************************************