Hi, Trying to use udp.scm raises me an error. It is because of the lack of the INET_ADDRSTRLEN definition. The workaround so far is to define it in udp.scm. Also, I tried to add mingw support by copying lines from tcp.scm, turned out that it compiles but does not work with this patch.
Any suggestions? Daishi The patch follows: 8<------8<------8<------8<------8<------8<------8<------8<------ --- udp.scm.orig 2005-07-25 18:43:15.324198400 +0900 +++ udp.scm 2005-07-29 09:27:44.746481600 +0900 @@ -94,6 +94,11 @@ #> # include <errno.h> +#ifdef _WIN32 +# include <winsock2.h> +# define fcntl(a, b, c) 0 +# define EWOULDBLOCK 0 +#else # include <fcntl.h> # include <sys/types.h> # include <sys/socket.h> @@ -104,6 +109,11 @@ # include <netdb.h> # define closesocket close # define INVALID_SOCKET -1 +#endif + +#ifndef INET_ADDRSTRLEN +#define INET_ADDRSTRLEN 16 +#endif <# _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users