Also use internal __fds_bits instead of fds_bits
authorPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 16:17:39 +0000 (16:17 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 16:17:39 +0000 (16:17 +0000)
cde/lib/csa/xtclient.c

index 50f84f061c407635e0229af1055bd704fd98b091..b42b5efc017c16602fea37ed31310d618e7c5b85 100644 (file)
@@ -69,7 +69,11 @@ _DtCm_register_xtcallback(XtAppContext appct)
                return;
 
        /* assuming only 1 bit is set */
+#if defined(linux)
+       bits = fdset.__fds_bits;
+#else
        bits = fdset.fds_bits;
+#endif
        for (i = 0; i < FD_SETSIZE; i += NFDBITS) {
                fmask = *bits;
                for (j = 0; fmask != 0; j++, fmask >>= 1) {