lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.92k stars 549 forks source link

Running or compiling on windows #71

Closed Hempels-ravens closed 9 years ago

Hempels-ravens commented 9 years ago

I know currently "Lwan" doesn't run or compile on windows(hundreds of errors at least for me 400 at start), i just wanted to understand if there are any plans to extended it past " _GNU_SOURCE" dependency or you don't want to let go of POSIX Library functions. In case you keep this open it means there are plans to port to windows(VS even) if so:

1-"pthread.h" can be fixed by static(will need code change i think) or dynamic linking pthreads-win32 2-<sys/socket.h> i dont know a possible fix without Winsock(major rewrite) 3-<netdb.h> <netinet/tcp.h> don't know any fix

just to name a few issues but this is just the tip of the iceberg, so are there plans to do so?

lpereira commented 9 years ago

Writing portable software is tricky and I don't have the expertise or resources to support a port to any platform other than Linux (and maybe other Unices). If you're willing to maintain a port for Windows, I might consider merging it.

Hempels-ravens commented 9 years ago

i had the idea to start attempting to port it to windows as Lwan has a lot of experimentation in it and i wanted to experiment linux to windows porting as lwan is already a good experimentation ground as it has a lot of cool things in it:). i'm a linux fan to begin with but i'm fairly in experienced in programming(coroutine was a mind opener to me and i learned alot from lwan) so i wanted to experiment with it and see if you might be willing to accept merges( if it does work), but i'm probably gonna fail but will try to do it and any result i will try to give a good quality code that you can accept without problems if i go in it.