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

@@ -1,5 +1,3 @@
if(NOT MSVC)
set(
OCSPCHECK_SRC
http.c
@@ -33,5 +31,3 @@ if(ENABLE_LIBRESSL_INSTALL)
install(FILES ocspcheck.8 DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
endif(ENABLE_LIBRESSL_INSTALL)
endif()