lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Sat Oct 13 15:35:46 2012
New Revision: 1787
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1787&view=revision

Log:
provide alternatives for assertion failures on Solaris and FreeBSD

Modified:
   nss-pam-ldapd/tests/common.h

Modified: nss-pam-ldapd/tests/common.h
==============================================================================
--- nss-pam-ldapd/tests/common.h        Sat Oct 13 15:04:20 2012        (r1786)
+++ nss-pam-ldapd/tests/common.h        Sat Oct 13 15:35:46 2012        (r1787)
@@ -2,7 +2,7 @@
    common.h - common test routines
    This file is part of the nss-pam-ldapd library.
 
-   Copyright (C) 2011 Arthur de Jong
+   Copyright (C) 2011, 2012 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
@@ -32,7 +32,13 @@
 /* try to find the actual assert function */
 #ifndef HAVE___ASSERT_FAIL
 /* for Solaris: */
+#ifdef sun
 #define __assert_fail(assertion,file,line,function) 
__assert(assertion,file,line)
+#endif
+/* for FreeBSD: */
+#ifdef __FreeBSD__
+#define __assert_fail(assertion,file,line,function) 
__assert(assertion,file,line,function)
+#endif
 #endif /* not HAVE___ASSERT_FAIL */
 
 /* extra assertion function that epxects both strings to be the same
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/