tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kqueue udata

I'm using kqueue across a number of platforms now (MacOS, *BSD, Linux
via libkqueue), but the kevent struct on NetBSD introduces type warnings
by defining udata differently. Example:


//  NetBSD defines (struct kevent).udata as intptr_t, everyone else
//  as void *.
#if defined ZMQ_HAVE_NETBSD
#define kevent_udata_t intptr_t
#define kevent_udata_t void *

Would it be advantageous to follow FreeBSD by defining  'struct
event.udata' as 'void *'?

Eric Radman  |

Home | Main Index | Thread Index | Old Index