summaryrefslogtreecommitdiff
path: root/net/tsocks/patches/patch-ad
blob: bdebe74e1e79853c84c006a1b4ab48d3c698237e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)