diff options
author | Kavon Farvardin <kavon@farvard.in> | 2018-09-23 15:29:37 -0500 |
---|---|---|
committer | Kavon Farvardin <kavon@farvard.in> | 2018-09-23 15:29:37 -0500 |
commit | 84c2ad99582391005b5e873198b15e9e9eb4f78d (patch) | |
tree | caa8c2f2ec7e97fbb4977263c6817c9af5025cf4 /rts/posix/Select.c | |
parent | 8ddb47cfcf5776e9a3c55fd37947c8a95e00fa12 (diff) | |
parent | e68b439fe5de61b9a2ca51af472185c62ccb8b46 (diff) | |
download | haskell-wip/T13904.tar.gz |
update to current master againwip/T13904
Diffstat (limited to 'rts/posix/Select.c')
-rw-r--r-- | rts/posix/Select.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rts/posix/Select.c b/rts/posix/Select.c index 3d3b70b565..270e6ff45c 100644 --- a/rts/posix/Select.c +++ b/rts/posix/Select.c @@ -256,9 +256,14 @@ awaitEvent(bool wait) for(tso = blocked_queue_hd; tso != END_TSO_QUEUE; tso = next) { next = tso->_link; - /* On FreeBSD FD_SETSIZE is unsigned. Cast it to signed int + /* On older FreeBSDs, FD_SETSIZE is unsigned. Cast it to signed int * in order to switch off the 'comparison between signed and * unsigned error message + * Newer versions of FreeBSD have switched to unsigned int: + * https://github.com/freebsd/freebsd/commit/12ae7f74a071f0439763986026525094a7032dfd + * http://fa.freebsd.cvs-all.narkive.com/bCWNHbaC/svn-commit-r265051-head-sys-sys + * So the (int) cast should be removed across the code base once + * GHC requires a version of FreeBSD that has that change in it. */ switch (tso->why_blocked) { case BlockedOnRead: |