Porting fixes.

diff --git a/server/object.h b/server/object.h
index 7868e2f..234c972 100644
--- a/server/object.h
+++ b/server/object.h
@@ -21,7 +21,10 @@
 #ifndef __WINE_SERVER_OBJECT_H
 #define __WINE_SERVER_OBJECT_H
 
+#ifdef HAVE_SYS_POLL_H
 #include <sys/poll.h>
+#endif
+
 #include <sys/time.h>
 #include "wine/server_protocol.h"
 #include "list.h"