summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-05-03 09:05:53 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-05-03 09:05:53 (GMT)
commitd0da70e413195ed6e2c110ba82a91bf1cf2ea8b3 (patch)
tree5f079d16acc82b0f630c2f39bbbad15dda1516b2
parentdcf22bf22697bd75efe65dffae8f9fe350cb1fe8 (diff)
parent266e802451e2fd0df0f70805be78ddea584e3cd2 (diff)
downloadtcl-d0da70e413195ed6e2c110ba82a91bf1cf2ea8b3.zip
tcl-d0da70e413195ed6e2c110ba82a91bf1cf2ea8b3.tar.gz
tcl-d0da70e413195ed6e2c110ba82a91bf1cf2ea8b3.tar.bz2
move some more CYGWIN stuff to unix/tclUnixPort.h
-rw-r--r--unix/tclUnixPort.h6
-rw-r--r--win/tclWinError.c5
2 files changed, 6 insertions, 5 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 70ea2d4..33348e2 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -74,6 +74,12 @@ typedef off_t Tcl_SeekOffset;
#endif
#ifdef __CYGWIN__
+# define WSAEWOULDBLOCK 10035
+# define HINSTANCE void *
+# define HANDLE void *
+# define DWORD unsigned int
+# define SOCKET unsigned int
+# typedef char TCHAR;
# define USE_PUTENV 1
# define USE_PUTENV_FOR_UNSET 1
/* On Cygwin, the environment is imported from the Cygwin DLL. */
diff --git a/win/tclWinError.c b/win/tclWinError.c
index d3126b1..a74d2e2 100644
--- a/win/tclWinError.c
+++ b/win/tclWinError.c
@@ -333,11 +333,6 @@ static CONST int wsaErrorTable[] = {
EREMOTE /* WSAEREMOTE */
};
-#ifdef __CYGWIN__
-# include <windows.h>
-# define DWORD unsigned int
-#endif
-
/*
*----------------------------------------------------------------------
*