Open zielmicha opened 8 years ago
Not exactly 'trivial'. A lot of the code includes posix (at least in the uv folder), and there are some things used that are posix only. I'm unfamiliar with using sockets in both windows and unix so I'm at a loss here. To get started you would have to detect windows or unix/mac and import winlean if windows and posix if posix. Then you'd have to find the windows equivalent for the posix functions and variables used. P.S. It doesn't appear to compile on the latest devel.
Actually most of these posix imports are unused (I have no idea why I've added them) and rest are used only for errno.
Anyway, it compiles for me on latest devel (emit tons of warnings, I've just fixed them). Could you post an error message?
Oh, interesting. It appears to be my installation of nim that is the problem. I'm getting casting errors,
reactor\uv\uvstream.nim(33, 18) Error: type mismatch: got (int, culong)
I'll look into it, probably a problem with my installation.
This is caused by bad definition of uv_buf_t
for Windows - this is one of these things that need adjusting.
698a9f194c is nearly there, but there are still some problems with linker.
Make reactor.nim compile on Windows.