You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #787 - vojtechkral:master, r=alexcrichton
Fix kqueue filter consts type on NetBSD [WAS: Provide EV_SET]
Using BSD kqueue's `kevent` structure is tedious, because some BSD variants define the structure slightly differently. This forces user's code to differentiate between BSD variants and initialize `kevent` accordingly, which is annoying and error-prone.
For an example, refer to [MIO](https://github.com/carllerche/mio/blob/master/src/sys/unix/kqueue.rs#L38).
This is an attempt to fix it - provide a ctor function with the same signature across BSD variants.
Is an `impl` piece for a C structure allowed in libc?
**edit:** I noticed the `kevent` function has a similar problem, maybe I should include a fix for that too...
**edit:** ^ Done
0 commit comments