Thamer Alharbash
talharbash@primustel.ca
Wed Mar 10 14:36:08 UTC 2004
On Wed, 10 Mar 2004, Zelei Tamas wrote: > clnt_send.c: In function `dcc_select_poll': > clnt_send.c:1943: `POLLRDNORM' undeclared (first use in this function) > clnt_send.c:1943: (Each undeclared identifier is reported only once > clnt_send.c:1943: for each function it appears in.) > clnt_send.c:1943: `POLLRDBAND' undeclared (first use in this function) > clnt_send.c:1945: `POLLWRNORM' undeclared (first use in this function) > clnt_send.c:1945: `POLLWRBAND' undeclared (first use in this function) > make[1]: *** [clnt_send.o] Error 1 > make: *** [all] Error 2 > > os version: Slackware Linux 2.2.19 > The quick fix is to add __XOPEN_SOURCE to dcclib/clnt_send.c at the very top. Here's the actual problem though. From /usr/include/bits/poll.h: #ifdef __USE_XOPEN /* These values are defined in XPG4.2. */ # define POLLRDNORM 0x040 /* Normal data may be read. */ # define POLLRDBAND 0x080 /* Priority data may be read. */ # define POLLWRNORM 0x100 /* Writing now will not block. */ # define POLLWRBAND 0x200 /* Priority data may be written. */ #endif __USE_XOPEN is defined by features.h if _XOPEN_SOURCE is defined. Or at least it seems to be. I couldn't work it out from cpp abuses. -- Thamer Alharbash Systems Developer Internet Services Group Primus Canada +416-207-7073
More information about the DCC
mailing list