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

Re: zftp module problem



"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