Open cstrahan opened 14 years ago
You'll probably need to fix extconf.rb to look for the correct headers then. I don't have windows so I can't help :(
Hello, this can be cross-compiled and tested using rake-compiler: https://github.com/luislavena/rake-compiler
It needs the proper header exclusion/inclusion for Windows, which can be sorted out without the need of a Windows machine, just time :(
Hello
I encounter the same problem. On Windows, htons and ntohs are in the winsock2.h include file. The following patch should solve the problem :
--- extconf_.rb 2011-04-09 23:58:11.489221900 +0200
+++ extconf.rb 2011-04-09 22:38:54.000000000 +0200
@@ -14,10 +14,12 @@
have_macro('htons', 'arpa/inet.h') ||
have_func('htons', 'arpa/inet.h') ||
+have_func('htons', 'winsock2.h') ||
abort("couldn't find htons")
have_macro('ntohs', 'arpa/inet.h') ||
have_func('ntohs', 'arpa/inet.h') ||
+have_func('ntohs', 'winsock2.h') ||
abort("couldn't find ntohs")
I will be pleased to test the new gem and help make it work on Windows...
Asked related question on stack overflow. There seems to be a fork which might address this issue here: https://github.com/Donavan/dnssd But, I'm not sure how to use it. http://stackoverflow.com/questions/20039202/cant-find-gem-specification-to-use-forked-gem
Here's the output when I try to install this gem:
Does anyone know how I can resolve this? Shouldn't it be looking in winsock.h, as opposed to arpa/inet.h?
Thanks,
-Charles