Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created August 20, 2016 06:35
Show Gist options
  • Save saitoha/78166cadf206e1ca47d966a22f452c6b to your computer and use it in GitHub Desktop.
Save saitoha/78166cadf206e1ca47d966a22f452c6b to your computer and use it in GitHub Desktop.
Xsixel on cygwin-i686
diff --git a/os/WaitFor.c b/os/WaitFor.c
index 3eb15b9..155519c 100644
--- a/os/WaitFor.c
+++ b/os/WaitFor.c
@@ -316,7 +316,7 @@ WaitForSomething(int *pClientsReady)
nready = 0;
if (XFD_ANYSET(&clientsReadable)) {
#ifndef WIN32
- for (i = 0; i < howmany(XFD_SETSIZE, NFDBITS); i++) {
+ for (i = 0; i < howmany(FD_SETSIZE, NFDBITS); i++) {
int highest_priority = 0;
while (clientsReadable.fds_bits[i]) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment