Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zftp module problem
- X-seq: zsh-workers 6174
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: zftp module problem
- Date: Fri, 30 Apr 1999 13:16:16 +0200
- In-reply-to: ""Bart Schaefer""'s message of "Fri, 30 Apr 1999 03:12:29 DFT." <990430031229.ZM16136@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
"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 <poll.h>
#endif
+#if defined(HAVE_POLL) && !defined(POLLIN) && !defined(POLLNORM)
+# undef HAVE_POLL
+#endif
/* pinch the definition from <netinet/in.h> for deficient headers */
#ifndef INADDR_NONE
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author