mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 15:19:34 -05:00
s/HAVE_SYSLOG/LDAP_SYSLOG/g
Use <ac/syslog.h>
This commit is contained in:
parent
df616d76ce
commit
f01a7dad53
1 changed files with 4 additions and 10 deletions
|
|
@ -86,20 +86,14 @@ ldbm_malloc( size_t size )
|
||||||
return( calloc( 1, size ));
|
return( calloc( 1, size ));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SYSLOG
|
#ifdef LDAP_SYSLOG
|
||||||
#ifdef HAVE_SYSLOG_H
|
#include <ac/syslog.h>
|
||||||
#include "syslog.h"
|
|
||||||
#else
|
|
||||||
/* quick hack */
|
|
||||||
#define LOG_INFO 1
|
|
||||||
extern int syslog(int, char*, ...);
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* HAVE_SYSLOG */
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ldbm_db_errcall( const char *prefix, char *message )
|
ldbm_db_errcall( const char *prefix, char *message )
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SYSLOG
|
#ifdef LDAP_SYSLOG
|
||||||
syslog( LOG_INFO, "ldbm_db_errcall(): %s %s", prefix, message );
|
syslog( LOG_INFO, "ldbm_db_errcall(): %s %s", prefix, message );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -136,7 +130,7 @@ int ldbm_initialize( void )
|
||||||
sprintf( error, "%s\n", strerror( err ));
|
sprintf( error, "%s\n", strerror( err ));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SYSLOG
|
#ifdef LDAP_SYSLOG
|
||||||
syslog( LOG_INFO,
|
syslog( LOG_INFO,
|
||||||
"ldbm_initialize(): FATAL error in db_appinit() : %s\n",
|
"ldbm_initialize(): FATAL error in db_appinit() : %s\n",
|
||||||
error );
|
error );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue