git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bf51ea
)
async_sock: Map ASYNC_REQ_TIMEOUT to ETIMEDOUT instead of ETIME
author
Kai Blin
<kai@samba.org>
Mon, 9 Feb 2009 11:11:43 +0000
(12:11 +0100)
committer
Kai Blin
<kai@samba.org>
Mon, 9 Feb 2009 11:13:58 +0000
(12:13 +0100)
Also, fall back to EIO if ETIMEDOUT is not present
lib/async_req/async_sock.c
patch
|
blob
|
history
diff --git
a/lib/async_req/async_sock.c
b/lib/async_req/async_sock.c
index 23ac93745eb22db495b61aa6088765bc25f9210e..46ad29d053473ce952b19dd7800b4f6ac1e17bef 100644
(file)
--- a/
lib/async_req/async_sock.c
+++ b/
lib/async_req/async_sock.c
@@
-116,7
+116,11
@@
bool async_req_is_errno(struct async_req *req, int *err)
*err = (int)error;
break;
case ASYNC_REQ_TIMED_OUT:
- *err = ETIME;
+#ifdef HAVE_ETIMEDOUT
+ *err = ETIMEDOUT;
+#else
+ *err = EIO;
+#endif
break;
case ASYNC_REQ_NO_MEMORY:
*err = ENOMEM;