summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authordjm <djm>2008-07-04 13:10:49 +0000
committerdjm <djm>2008-07-04 13:10:49 +0000
commit3d2174695a7e606f709dca9dd87a68757c8c437c (patch)
tree93f94a773f5d4b8d9da5ee426ed02621ee04c19e /defines.h
parent009f7e35c0a4a367cdfc8db24011e29c342b02ac (diff)
downloadopenssh-3d2174695a7e606f709dca9dd87a68757c8c437c.tar.gz
- (djm) [atomicio.c channels.c clientloop.c defines.h includes.h]
[packet.c scp.c serverloop.c sftp-client.c ssh-agent.c ssh-keyscan.c] [sshd.c] Explicitly handle EWOULDBLOCK wherever we handle EAGAIN, on some platforms (HP nonstop) it is a distinct errno; bz#1467 reported by sconeu AT yahoo.com; ok dtucker@
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index a2fda996..a8203ebb 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.150 2008/06/13 00:28:57 dtucker Exp $ */
+/* $Id: defines.h,v 1.151 2008/07/04 13:10:49 djm Exp $ */
/* Constants */
@@ -734,4 +734,8 @@ struct winsize {
# endif
#endif
+#ifndef EWOULDBLOCK
+# define EWOULDBLOCK EAGAIN
+#endif
+
#endif /* _DEFINES_H */