diff options
| author | Pierre Wendling <pierre.wendling.4@gmail.com> | 2023-09-12 18:33:46 +0200 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-10-29 12:28:44 -0500 |
| commit | c4bb6b79ea36c05ccfe3033174a7950ac6a51609 (patch) | |
| tree | e15ea4ac82cba82224f493c04b9259f53d93b107 /include | |
| parent | 80489416222831efbfa3d0e2c74e39bfddb2dcb8 (diff) | |
| download | portable-c4bb6b79ea36c05ccfe3033174a7950ac6a51609.tar.gz portable-c4bb6b79ea36c05ccfe3033174a7950ac6a51609.tar.bz2 portable-c4bb6b79ea36c05ccfe3033174a7950ac6a51609.zip | |
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)
Diffstat (limited to 'include')
| -rw-r--r-- | include/compat/unistd.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); | |||
| 23 | #include <io.h> | 23 | #include <io.h> |
| 24 | #include <process.h> | 24 | #include <process.h> |
| 25 | 25 | ||
| 26 | #define STDIN_FILENO 0 | ||
| 26 | #define STDOUT_FILENO 1 | 27 | #define STDOUT_FILENO 1 |
| 27 | #define STDERR_FILENO 2 | 28 | #define STDERR_FILENO 2 |
| 28 | 29 | ||
| @@ -65,7 +66,7 @@ int getentropy(void *buf, size_t buflen); | |||
| 65 | #endif | 66 | #endif |
| 66 | 67 | ||
| 67 | #ifndef HAVE_GETOPT | 68 | #ifndef HAVE_GETOPT |
| 68 | #include <getopt.h> | 69 | #include "getopt.h" |
| 69 | #endif | 70 | #endif |
| 70 | 71 | ||
| 71 | #ifndef HAVE_GETPAGESIZE | 72 | #ifndef HAVE_GETPAGESIZE |
