[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] udp.scm on cygwin
From: |
Daishi Kato |
Subject: |
[Chicken-users] udp.scm on cygwin |
Date: |
Fri, 29 Jul 2005 10:34:23 +0900 |
User-agent: |
Wanderlust/2.15.1 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI) |
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
<#
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-users] udp.scm on cygwin,
Daishi Kato <=