]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/os-ip.c
ITS#2657: authzid (and assertion) should apply to most everything
[openldap] / libraries / libldap / os-ip.c
index 5d097e415ffb2c80f692b3c732655d9d56bab88d..57195918db1ef1a4f12fa1161cd68ada0155658a 100644 (file)
@@ -52,11 +52,19 @@ int ldap_int_inet4or6 = AF_INET;
  * ftp://koobera.math.uic.edu/www/docs/connect.html.
  */
 
+#ifdef LDAP_DEBUG
+
 #define osip_debug(ld,fmt,arg1,arg2,arg3) \
 do { \
        ldap_log_printf(NULL, LDAP_DEBUG_TRACE, fmt, arg1, arg2, arg3); \
 } while(0)
 
+#else
+
+#define osip_debug(ld,fmt,arg1,arg2,arg3) ((void)0)
+
+#endif /* LDAP_DEBUG */
+
 static void
 ldap_pvt_set_errno(int err)
 {