From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10334 invoked from network); 30 Apr 1999 10:13:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Apr 1999 10:13:02 -0000 Received: (qmail 17490 invoked by alias); 30 Apr 1999 10:12:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6171 Received: (qmail 17483 invoked from network); 30 Apr 1999 10:12:37 -0000 From: "Bart Schaefer" Message-Id: <990430031229.ZM16136@candle.brasslantern.com> Date: Fri, 30 Apr 1999 03:12:29 -0700 X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@sunsite.auc.dk Subject: zftp module problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I'm just rebuilding a dynamic zsh 3.1.5-pws-XX for the first time in quite a while, and I just ran into a compilation problem with zftp.c: ../../../zsh-3.1.5/Src/Modules/zftp.c: In function `zftp_test': ../../../zsh-3.1.5/Src/Modules/zftp.c:2071: storage size of `pfd' isn't known ../../../zsh-3.1.5/Src/Modules/zftp.c:2086: `POLLNORM' undeclared (first use this function) 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. The following is a rather brute-force correction. Index: Src/Modules/zftp.c =================================================================== diff -u -r1.5 zftp.c --- zftp.c 1999/03/29 21:46:03 1.5 +++ zftp.c 1999/04/30 10:08:54 @@ -2067,7 +2067,7 @@ { #if defined(HAVE_POLL) || defined(HAVE_SELECT) int ret; -# ifdef HAVE_POLL +# if defined(HAVE_POLL) && (defined(POLLIN) || defined(POLLNORM)) struct pollfd pfd; # else fd_set f; @@ -2077,7 +2077,7 @@ if (zcfd == -1) return 1; -# ifdef HAVE_POLL +# if defined(HAVE_POLL) && (defined(POLLIN) || defined(POLLNORM)) # ifndef POLLIN /* safety first, though I think POLLIN is more common */ # define POLLIN POLLNORM -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com