Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_tio.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:31:01 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:31:01 +0100
commit5e0bb05ee9a1299cd1e5d60d3fc9b2f721ce8314 (patch)
treeaa75931fe2a4984573d742038cd0cfa8ede9c8dd /tests/test_tio.c
parentb5b6c48ff54edcbe6e43e3dbe412f9faf911ab3f (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.c7
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;