about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/www_tcp.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2000-06-03 01:16:48 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2000-06-03 01:16:48 -0400
commit03239fe7d0beedb4b52c96d56729d24fa0db0405 (patch)
treeab4e06ed9cdecc0f1312af802569fb3af574f45b /WWW/Library/Implementation/www_tcp.h
parentdbcd4fe595142928b3c220ccea2056987ea0a58c (diff)
downloadlynx-snapshots-03239fe7d0beedb4b52c96d56729d24fa0db0405.tar.gz
snapshot of project "lynx", label v2-8-4dev_3
Diffstat (limited to 'WWW/Library/Implementation/www_tcp.h')
-rw-r--r--WWW/Library/Implementation/www_tcp.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h
index 48d34f9f..adab9ab0 100644
--- a/WWW/Library/Implementation/www_tcp.h
+++ b/WWW/Library/Implementation/www_tcp.h
@@ -186,6 +186,11 @@ extern int ws_netread(int fd, char *buf, int len);
 #include <time.h>
 #include <errno.h>
 #include <direct.h>
+
+/* FIXME: someone might consider porting to winsock2.h */
+#define USE_WINSOCK_H
+
+#ifdef USE_WINSOCK_H
 #include <winsock.h>
 typedef struct sockaddr_in SockA;  /* See netinet/in.h */
 
@@ -194,7 +199,6 @@ typedef struct sockaddr_in SockA;  /* See netinet/in.h */
 #undef EAGAIN
 #endif /* _MSC_VER */
 
-#define EWOULDBLOCK          (WSABASEERR+35)	/* ADD by JH7AYN */
 #define EINPROGRESS          (WSABASEERR+36)
 #define EALREADY             (WSABASEERR+37)
 #define EISCONN              (WSABASEERR+56)
@@ -203,9 +207,11 @@ typedef struct sockaddr_in SockA;  /* See netinet/in.h */
 #define ENOTCONN             (WSABASEERR+57)
 #define ECONNRESET           (WSABASEERR+54)
 #define ETIMEDOUT             WSAETIMEDOUT	/* 1997/11/10 (Mon) */
-#define EINVAL                22
+
 #undef  SOCKET_ERRNO	/* 1997/10/19 (Sun) 18:01:46 */
 #define SOCKET_ERRNO          WSAGetLastError()
+#endif	/* USE_WINSOCK_H */
+
 #define INCLUDES_DONE
 #define TCP_INCLUDES_DONE
 #endif  /* WINDOWS */