Skip to content

Commit

Permalink
Fix undefined reference to vsyslog on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjs committed Sep 2, 2021
1 parent 0f25f13 commit 75ac423
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libressl-3.0.2/crypto/cryptlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,11 @@ OPENSSL_showfatal(const char *fmta, ...)
//struct syslog_data sdata = SYSLOG_DATA_INIT;
va_list ap;

va_start(ap, fmta);
//va_start(ap, fmta);
//vsyslog_r(LOG_INFO|LOG_LOCAL2, &sdata, fmta, ap);
vsyslog(LOG_INFO|LOG_LOCAL2, fmta, ap);
va_end(ap);
//vsyslog(LOG_INFO|LOG_LOCAL2, fmta, ap);
//va_end(ap);
printf("OpenSSL internal error\n");
}

void
Expand Down

0 comments on commit 75ac423

Please sign in to comment.