From c0d114d62f4e0f93bba1c911d9524ef0c800283b Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 5 Nov 1999 12:58:50 +0000 Subject: * pthread.h (winsock.h): Include unconditionally. (ETIMEDOUT): Change fallback value to that defined by winsock.h. --- ChangeLog | 3 +++ pthread.h | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbed53e..c4dff53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-11-05 Ross Johnson + * pthread.h (winsock.h): Include unconditionally. + (ETIMEDOUT): Change fallback value to that defined by winsock.h. + * general: Patched for portability to WinCE. The details are described in the file WinCE-PORT. Follow the instructions in README.WinCE to make the appropriate changes in config.h. diff --git a/pthread.h b/pthread.h index 54d00ba..c8076be 100644 --- a/pthread.h +++ b/pthread.h @@ -250,11 +250,9 @@ struct timespec { #include /* - * note: ETIMEDOUT is correctly defined in winsock.h on winCE + * note: ETIMEDOUT is correctly defined in winsock.h */ -#ifdef HAVE_WINSOCK_H #include -#endif #ifdef NEED_ERRNO #include "need_errno.h" @@ -262,8 +260,11 @@ struct timespec { #include #endif +/* + * In case ETIMEDOUT hasn't been defined above somehow. + */ #ifndef ETIMEDOUT -#define ETIMEDOUT 19981220 /* FIXME: Need the proper value here. */ +#define ETIMEDOUT 10060 /* This is the value in winsock.h. */ #endif #ifdef _MSC_VER -- cgit v1.2.3