ITS#10092 fix prev commit for non-Windows

This commit is contained in:
Howard Chu 2023-12-08 03:41:40 +00:00
parent 595d177473
commit a692941092

View file

@ -159,11 +159,11 @@ slap_debug_print( const char *data )
iov[0].iov_base = syslog_prefix;
iov[0].iov_len = splen;
#endif
} else {
ptr += poffset; /* only nonzero if logfile-format was explicitly set */
}
#ifdef _WIN32
if ( logfile_format <= LFMT_DEBUG )
ptr += poffset; /* only nonzero if logfile-format was explicitly set */
len = write( logfile_fd, ptr, len );
#else
len = writev( logfile_fd, iov, 2 );