From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21402 invoked from network); 30 Apr 1999 12:12:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Apr 1999 12:12:56 -0000 Received: (qmail 24769 invoked by alias); 30 Apr 1999 12:12:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6174 Received: (qmail 24762 invoked from network); 30 Apr 1999 12:12:50 -0000 Message-Id: <9904301116.AA45902@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk Subject: Re: zftp module problem In-Reply-To: ""Bart Schaefer""'s message of "Fri, 30 Apr 1999 03:12:29 DFT." <990430031229.ZM16136@candle.brasslantern.com> Date: Fri, 30 Apr 1999 13:16:16 +0200 From: Peter Stephenson "Bart Schaefer" wrote: > My system (Linux, RedHat 4.2, libc5, yes I know it's old) HAS_POLL and > HAS_SELECT but does not have struct pollfd, POLLIN, or POLLNORM defined. Any objection to doing it this way? It means that the HAVE_SELECT test works properly (i.e. if some of the poll() stuff is missing and select() is not present it won't use either). --- Src/Modules/zftp.c.orig Wed Mar 24 10:20:02 1999 +++ Src/Modules/zftp.c Fri Apr 30 13:12:39 1999 @@ -71,6 +71,9 @@ #ifdef HAVE_POLL_H # include #endif +#if defined(HAVE_POLL) && !defined(POLLIN) && !defined(POLLNORM) +# undef HAVE_POLL +#endif /* pinch the definition from for deficient headers */ #ifndef INADDR_NONE -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy