tech-userlevel archive

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

Incompatible definition of "struct kevent" in "sys/event.h"


"struct kevent" as defined in "sys/event.h" looks like this:

struct kevent {
        intptr_t        udata;          /* opaque user data identifier */

The problem is that FreeBSD, OpenBSD and Darwin all define "udata"
as "void". This causes problems in e.g. the "libtorrent" package.
This is a deliberate change in NetBSD:

date: 2002/10/02 19:09:36;  author: jdolecek;  state: Exp;  lines: +2 -2
make 'udata' field of struct kevent intptr_t (was 'void *')

Does anybody know why this incompatibility was invented?

        Kind regards

Matthias Scheler                        

Home | Main Index | Thread Index | Old Index