From 37d2dbf40565ee95d077ba101b1a1443528ecef2 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 27 Oct 2007 15:36:00 +0000 Subject: 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 --- common/tio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/tio.c') 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 -- cgit v1.2.3