summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>1999-11-05 12:58:50 +0000
committerrpj <rpj>1999-11-05 12:58:50 +0000
commitc0d114d62f4e0f93bba1c911d9524ef0c800283b (patch)
treee3ec630e433d8cb2331e66276c731e19ca7a810d /pthread.h
parent7fdb900bc169f0105bf5fb2cd282f6448f3f11f7 (diff)
* pthread.h (winsock.h): Include unconditionally.
(ETIMEDOUT): Change fallback value to that defined by winsock.h.
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h9
1 files changed, 5 insertions, 4 deletions
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 <process.h>
/*
- * note: ETIMEDOUT is correctly defined in winsock.h on winCE
+ * note: ETIMEDOUT is correctly defined in winsock.h
*/
-#ifdef HAVE_WINSOCK_H
#include <winsock.h>
-#endif
#ifdef NEED_ERRNO
#include "need_errno.h"
@@ -262,8 +260,11 @@ struct timespec {
#include <errno.h>
#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