I'm getting this error at the link stage (MSVC v18 on Win-8.1):

  poll.obj : error LNK2019: unresolved external symbol
    _recv_used_without_including_sys_socket_h referenced in function 
_windows_compute_revents_socket

  poll.obj : error LNK2019: unresolved external symbol
    _select_used_without_including_sys_select_h referenced in function _rpl_poll

The solution seems clearly spoken by the linker:

--- a/poll.c    2015-02-24 21:28:54 +0000
+++ b/poll.c      2015-02-24 21:47:05 +0000
@@ -41,6 +41,8 @@
 # include <io.h>
 # include <stdio.h>
 # include <conio.h>
+# include <sys/socket.h>
+# include <sys/select.h>
 # include "msvc-nothrow.h"
 #else
 # include <sys/time.h>

What do you say?

--
--gv

Reply via email to