krb5 commit [krb5-1.10]: Don't use syslog / LOG_DEBUG when they don't exist

Tom Yu tlyu at MIT.EDU
Mon Jul 23 16:26:32 EDT 2012


https://github.com/krb5/krb5/commit/316cf5a2b46433885e84720b31acb2aea00b5119
commit 316cf5a2b46433885e84720b31acb2aea00b5119
Author: Kevin Wasserman <kevin.wasserman at painless-security.com>
Date:   Tue May 15 14:38:05 2012 -0400

    Don't use syslog / LOG_DEBUG when they don't exist
    
    Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
    
    (cherry picked from commit 5ae666d1591f5ab8bc1182d053cdda7ce9a855d2)
    
    ticket: 7207
    version_fixed: 1.10.3
    status: resolved

 src/lib/gssapi/spnego/gssapiP_spnego.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/gssapi/spnego/gssapiP_spnego.h b/src/lib/gssapi/spnego/gssapiP_spnego.h
index 084716d..f50ab2d 100644
--- a/src/lib/gssapi/spnego/gssapiP_spnego.h
+++ b/src/lib/gssapi/spnego/gssapiP_spnego.h
@@ -117,7 +117,7 @@ typedef struct {
 extern const gss_OID_desc * const gss_mech_spnego;
 extern const gss_OID_set_desc * const gss_mech_set_spnego;
 
-#ifdef DEBUG
+#if defined(DEBUG) && defined(HAVE_SYSLOG_H)
 #include <syslog.h>
 #define	dsyslog(a) syslog(LOG_DEBUG, a)
 #else


More information about the cvs-krb5 mailing list