From f06374e731108b0af09da2d4d06e7c5f907a3f77 Mon Sep 17 00:00:00 2001 From: Pierre Wendling Date: Tue, 12 Sep 2023 18:33:46 +0200 Subject: 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) --- include/compat/unistd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/compat/unistd.h b/include/compat/unistd.h index 2583a6e..63c07fc 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h @@ -23,6 +23,7 @@ ssize_t pwrite(int d, const void *buf, size_t nbytes, off_t offset); #include #include +#define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 @@ -65,7 +66,7 @@ int getentropy(void *buf, size_t buflen); #endif #ifndef HAVE_GETOPT -#include +#include "getopt.h" #endif #ifndef HAVE_GETPAGESIZE -- cgit v1.2.3-55-g6feb