From b454005ea862f08171177d8c95c6b83b5d747f8b Mon Sep 17 00:00:00 2001 From: Gary Williams Date: Thu, 1 Apr 1999 16:06:08 +0000 Subject: [PATCH] NT port --- libraries/libldbm/ldbm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/libldbm/ldbm.c b/libraries/libldbm/ldbm.c index c2f191c31f..4a9fbc59f7 100644 --- a/libraries/libldbm/ldbm.c +++ b/libraries/libldbm/ldbm.c @@ -79,6 +79,7 @@ int ldbm_shutdown( void ) #else +#ifndef WIN32 #ifdef HAVE_SYSLOG #include "syslog.h" #else @@ -86,6 +87,7 @@ int ldbm_shutdown( void ) #define LOG_INFO 1 extern int syslog(int, char*, ...); #endif +#endif /* WIN32 */ void * ldbm_malloc( size_t size ) @@ -96,7 +98,9 @@ ldbm_malloc( size_t size ) static void ldbm_db_errcall( const char *prefix, char *message ) { +#ifndef WIN32 syslog( LOG_INFO, "ldbm_db_errcall(): %s %s", prefix, message ); +#endif } /* a dbEnv for BERKELEYv2 */ @@ -131,9 +135,11 @@ int ldbm_initialize( void ) sprintf( error, "%s\n", strerror( err )); } +#ifndef WIN32 syslog( LOG_INFO, "ldbm_initialize(): FATAL error in db_appinit() : %s\n", error ); +#endif return( 1 ); } -- 2.39.5