server: Add special NetBSD handling to avoid warnings

André Hentschel nerv at dawncrow.de
Sun Oct 16 10:30:45 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=17107
---
 server/fd.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/server/fd.c b/server/fd.c
index a8b3a5f..10e834a 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -565,8 +565,13 @@ static inline void set_fd_epoll_events( struct fd *fd, int user, int events )
 
     if (kqueue_fd == -1) return;
 
+#ifdef __NetBSD__
+    EV_SET( &ev[0], fd->unix_fd, EVFILT_READ, 0, NOTE_LOWAT, 1, user );
+    EV_SET( &ev[1], fd->unix_fd, EVFILT_WRITE, 0, NOTE_LOWAT, 1, user );
+#else
     EV_SET( &ev[0], fd->unix_fd, EVFILT_READ, 0, NOTE_LOWAT, 1, (void *)user );
     EV_SET( &ev[1], fd->unix_fd, EVFILT_WRITE, 0, NOTE_LOWAT, 1, (void *)user );
+#endif
 
     if (events == -1)  /* stop waiting on this fd completely */
     {
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list