diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-01-14 22:31:01 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-01-14 22:31:01 +0100 |
commit | 5e0bb05ee9a1299cd1e5d60d3fc9b2f721ce8314 (patch) | |
tree | aa75931fe2a4984573d742038cd0cfa8ede9c8dd /tests/test_tio.c | |
parent | b5b6c48ff54edcbe6e43e3dbe412f9faf911ab3f (diff) |
support systems without ETIME
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1915 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests/test_tio.c')
-rw-r--r-- | tests/test_tio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_tio.c b/tests/test_tio.c index 17d29b5..a89381a 100644 --- a/tests/test_tio.c +++ b/tests/test_tio.c @@ -2,7 +2,7 @@ test_tio.c - simple test for the tio module This file is part of the nss-pam-ldapd library. - Copyright (C) 2007, 2008, 2011, 2012 Arthur de Jong + Copyright (C) 2007, 2008, 2011, 2012, 2013 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -40,6 +40,11 @@ #include "common/tio.h" +/* for platforms that don't have ETIME use ETIMEDOUT */ +#ifndef ETIME +#define ETIME ETIMEDOUT +#endif /* ETIME */ + /* structure for passing arguments to helper (is a thread) */ struct helper_args { int fd; |