Commit 11c478b5 authored by Niklas Hambüchen's avatar Niklas Hambüchen Committed by Ben Gamari

rts: Update comment about FreeBSD's unsigned FD_SETSIZE

Reviewers: bgamari, austin, erikd, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision:
parent 66240c9b
......@@ -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:
* 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:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment