lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1915 - nss-pam-ldapd/tests

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1915 - nss-pam-ldapd/tests



Author: arthur
Date: Mon Jan 14 22:31:01 2013
New Revision: 1915
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1915&view=revision

Log:
support systems without ETIME

Modified:
   nss-pam-ldapd/tests/test_tio.c

Modified: nss-pam-ldapd/tests/test_tio.c
==============================================================================
--- nss-pam-ldapd/tests/test_tio.c      Mon Jan 14 22:24:23 2013        (r1914)
+++ nss-pam-ldapd/tests/test_tio.c      Mon Jan 14 22:31:01 2013        (r1915)
@@ -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;
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/