MSVC: Enable building ocspcheck.

- Add `STDIN_FILENO` to compat unistd header.
- Use quotes to include compat getopt header in the compat unistd.
- Export additional symbols needed by ocspcheck (optarg, optind,
  ftruncate)
This commit is contained in:
Pierre Wendling
2023-09-12 18:33:46 +02:00
committed by Brent Cook
parent 8048941622
commit c4bb6b79ea
4 changed files with 6 additions and 5 deletions

View File

@@ -22,6 +22,8 @@ if(WIN32)
compat/pread.c
compat/pwrite.c
)
set(LIBTLS_EXTRA_EXPORT ${LIBTLS_EXTRA_EXPORT} ftruncate)
endif()
if(NOT "${OPENSSLDIR}" STREQUAL "")