From f01a7dad53cd8439b6da4be661c12c7d97f74ffc Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 19 May 1999 01:58:23 +0000 Subject: [PATCH] s/HAVE_SYSLOG/LDAP_SYSLOG/g Use --- libraries/libldbm/ldbm.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/libraries/libldbm/ldbm.c b/libraries/libldbm/ldbm.c index 89a6c326ef..08c3299520 100644 --- a/libraries/libldbm/ldbm.c +++ b/libraries/libldbm/ldbm.c @@ -86,20 +86,14 @@ ldbm_malloc( size_t size ) return( calloc( 1, size )); } -#ifdef HAVE_SYSLOG -#ifdef HAVE_SYSLOG_H -#include "syslog.h" -#else -/* quick hack */ -#define LOG_INFO 1 -extern int syslog(int, char*, ...); +#ifdef LDAP_SYSLOG +#include #endif -#endif /* HAVE_SYSLOG */ static void ldbm_db_errcall( const char *prefix, char *message ) { -#ifdef HAVE_SYSLOG +#ifdef LDAP_SYSLOG syslog( LOG_INFO, "ldbm_db_errcall(): %s %s", prefix, message ); #endif } @@ -136,7 +130,7 @@ int ldbm_initialize( void ) sprintf( error, "%s\n", strerror( err )); } -#ifdef HAVE_SYSLOG +#ifdef LDAP_SYSLOG syslog( LOG_INFO, "ldbm_initialize(): FATAL error in db_appinit() : %s\n", error ); -- 2.39.5