From 1696298aad3f84b6cd9008bb2684db572b34dfb5 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Mon, 9 Feb 2009 09:36:40 -0800 Subject: s3 async: Fix the build on systems that have ETIMEDOUT but not ETIME Fallback on EAGAIN --- source3/lib/util_sock.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index b9a7f8788d..c46aa2ac49 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1061,10 +1061,13 @@ static void open_socket_out_connected(struct async_req *subreq) return; } - if ((sys_errno == ETIME) - || (sys_errno == EINPROGRESS) - || (sys_errno == EALREADY) - || (sys_errno == EAGAIN)) { + if ( +#ifdef ETIMEDOUT + (sys_errno == ETIMEDOUT) || +#endif + (sys_errno == EINPROGRESS) || + (sys_errno == EALREADY) || + (sys_errno == EAGAIN)) { /* * retry -- cgit