ce96bb8d74
This change lets, e.g. tnftp work when using tsocks. From soda@ in PR pkg/30921. Bump PKGREVISION to 2.
19 lines
605 B
Text
19 lines
605 B
Text
$NetBSD: patch-ad,v 1.1 2006/09/17 11:45:04 jmmv Exp $
|
|
|
|
https://sourceforge.net/tracker/index.php?func=detail&aid=1252703&group_id=17338&atid=117338
|
|
|
|
--- tsocks.h.orig 2002-03-13 13:58:09.000000000 +0100
|
|
+++ tsocks.h
|
|
@@ -75,9 +75,9 @@ struct connreq {
|
|
#define FAILED 14
|
|
|
|
/* Flags to indicate what events a socket was select()ed for */
|
|
-#define READ (1<<0)
|
|
-#define WRITE (1<<1)
|
|
-#define EXCEPT (1<<2)
|
|
+#define READ (POLLIN|POLLRDNORM)
|
|
+#define WRITE (POLLOUT|POLLWRNORM|POLLWRBAND)
|
|
+#define EXCEPT (POLLRDBAND|POLLPRI)
|
|
#define READWRITE (READ|WRITE)
|
|
#define READWRITEEXCEPT (READ|WRITE|EXCEPT)
|
|
|