Wine is going to add support for epoll instead of poll (actually it will have both, but if epoll is present is preferred againt poll, because it's faster), there's for now a beta patch which I'm using, but to build wine with epoll stuff turned on I needed the libepoll, for which I wrote the attached ebuild. It depends on netbsd's pmake because it uses mkdep command. Reproducible: Always Steps to Reproduce:
Created attachment 39384 [details] libepoll-0.11.ebuild
Created attachment 42478 [details] epoll-lib-0.11.ebuild cleaned up ebuild
Created attachment 42479 [details, diff] 0.11-makefile.patch fix parallel builds/cflags/etc... with makefile
glibc (if built with 2.6 support) includes epoll use that