diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-10-27 17:36:00 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-10-27 17:36:00 +0200 |
commit | 37d2dbf40565ee95d077ba101b1a1443528ecef2 (patch) | |
tree | ed3efe672a3a730b9409c15da896006818a03a50 /common/tio.c | |
parent | a618d315aadff957a6f78cd61a64cd791e3ffdb6 (diff) |
portability improvement to fall back to ETIMEDOUT when ETIME is unavailable
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@461 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'common/tio.c')
-rw-r--r-- | common/tio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/tio.c b/common/tio.c index 445cbfa..ad34636 100644 --- a/common/tio.c +++ b/common/tio.c @@ -34,6 +34,11 @@ #include "tio.h" +/* for platforms that don't have ETIME use ETIMEDOUT */ +#ifndef ETIME +#define ETIME ETIMEDOUT +#endif /* ETIME */ + /* buffer size for both read and write buffers */ /* TODO: pass this along with the open function */ /* Note that this size should not be larger than SSIZE_MAX because otherwise |