mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Use internal __fds_bit variable on Linux, this doesn't seem great.
This commit is contained in:
parent
6f6dbbb73b
commit
bcfc468cdc
1 changed files with 8 additions and 0 deletions
|
@ -215,7 +215,11 @@ _DtCm_process_updates()
|
||||||
rpc_bits = svc_fdset;
|
rpc_bits = svc_fdset;
|
||||||
|
|
||||||
/* convert to pollfd structure */
|
/* convert to pollfd structure */
|
||||||
|
#if defined(linux)
|
||||||
|
inbits = rpc_bits.__fds_bits;
|
||||||
|
#else
|
||||||
inbits = rpc_bits.fds_bits;
|
inbits = rpc_bits.fds_bits;
|
||||||
|
#endif
|
||||||
p = pfd;
|
p = pfd;
|
||||||
for (i = 0; i < FD_SETSIZE; i += NFDBITS) {
|
for (i = 0; i < FD_SETSIZE; i += NFDBITS) {
|
||||||
fmask = *inbits;
|
fmask = *inbits;
|
||||||
|
@ -249,7 +253,11 @@ _DtCm_process_updates()
|
||||||
for (p = pfd; i-- > 0; p++) {
|
for (p = pfd; i-- > 0; p++) {
|
||||||
j = p->fd / NFDBITS;
|
j = p->fd / NFDBITS;
|
||||||
if (j != last) {
|
if (j != last) {
|
||||||
|
#if defined(linux)
|
||||||
|
inbits = &rpc_bits.__fds_bits[j];
|
||||||
|
#else
|
||||||
inbits = &rpc_bits.fds_bits[j];
|
inbits = &rpc_bits.fds_bits[j];
|
||||||
|
#endif
|
||||||
last = j;
|
last = j;
|
||||||
}
|
}
|
||||||
if (p->revents & POLLIN) {
|
if (p->revents & POLLIN) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue