From 42aaf4dcf74a046fa30878d2780471e2acad800f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 23 Jan 2013 16:55:09 +0000 Subject: [PATCH] Implement EVUTIL_ERR_IS_EAGAIN on windows. --- util-internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util-internal.h b/util-internal.h index f52ae3f4..9251758e 100644 --- a/util-internal.h +++ b/util-internal.h @@ -102,6 +102,10 @@ extern "C" { ((e) == ECONNREFUSED) #else +/* Win32 */ + +#define EVUTIL_ERR_IS_EAGAIN(e) \ + ((e) == WSAEWOULDBLOCK || (e) == EAGAIN) #define EVUTIL_ERR_RW_RETRIABLE(e) \ ((e) == WSAEWOULDBLOCK || \