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 60f4156d76
commit f06374e731
4 changed files with 6 additions and 5 deletions

View File

@@ -778,6 +778,8 @@ endif()
if(NOT HAVE_GETOPT)
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getopt_long.c)
set(EXTRA_EXPORT ${EXTRA_EXPORT} getopt)
set(EXTRA_EXPORT ${EXTRA_EXPORT} optarg)
set(EXTRA_EXPORT ${EXTRA_EXPORT} optind)
endif()
if(NOT HAVE_GETPAGESIZE)