X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbio%2Fbss_log.c;h=534181267216418ee238c17ef41e9192bedc7ab3;hp=bdcbf30480d5023567a029b8c38c3f8415184f63;hb=8d6e60486f3682e31830b11b7188038d6a85871f;hpb=dc01b6b1f20e9fa8a975f5f28e55fdaa75fe37e6 diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c index bdcbf30480..5341812672 100644 --- a/crypto/bio/bss_log.c +++ b/crypto/bio/bss_log.c @@ -66,7 +66,7 @@ #include #include -#include +#include "cryptlib.h" #if defined(OPENSSL_SYS_WIN32) # include @@ -77,11 +77,10 @@ # include #elif defined(__ultrix) # include -#elif !defined(MSDOS) && !defined(NO_SYSLOG) /* Unix */ +#elif (!defined(MSDOS) || defined(WATT32)) && !defined(OPENSSL_SYS_VXWORKS) && !defined(NO_SYSLOG) # include #endif -#include "cryptlib.h" #include #include @@ -275,7 +274,7 @@ static void xsyslog(BIO *bp, int priority, const char *string) LPCSTR lpszStrings[2]; WORD evtype= EVENTLOG_ERROR_TYPE; int pid = _getpid(); - char pidbuf[20]; + char pidbuf[DECIMAL_SIZE(pid)+4]; switch (priority) { @@ -374,11 +373,15 @@ static void xcloselog(BIO* bp) { } -#else /* Unix */ +#else /* Unix/Watt32 */ static void xopenlog(BIO* bp, char* name, int level) { +#ifdef WATT32 /* djgpp/DOS */ + openlog(name, LOG_PID|LOG_CONS|LOG_NDELAY, level); +#else openlog(name, LOG_PID|LOG_CONS, level); +#endif } static void xsyslog(BIO *bp, int priority, const char *string)