diff options
Diffstat (limited to 'net/tsocks/patches/patch-ad')
-rw-r--r-- | net/tsocks/patches/patch-ad | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/tsocks/patches/patch-ad b/net/tsocks/patches/patch-ad new file mode 100644 index 00000000000..bdebe74e1e7 --- /dev/null +++ b/net/tsocks/patches/patch-ad @@ -0,0 +1,19 @@ +$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) + |