From 5e0bb05ee9a1299cd1e5d60d3fc9b2f721ce8314 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 14 Jan 2013 21:31:01 +0000 Subject: support systems without ETIME git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1915 ef36b2f9-881f-0410-afb5-c4e39611909c --- tests/test_tio.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/test_tio.c') 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; -- cgit v1.2.3