diff options
Diffstat (limited to 'include/openssl/async.h')
-rw-r--r-- | include/openssl/async.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/openssl/async.h b/include/openssl/async.h index 160766af36..ca51bb3412 100644 --- a/include/openssl/async.h +++ b/include/openssl/async.h @@ -13,9 +13,11 @@ # define HEADER_ASYNC_H #if defined(_WIN32) -#include <windows.h> +# if defined(BASETYPES) || defined(_WINDEF_H) +/* application has to include <windows.h> to use this */ #define OSSL_ASYNC_FD HANDLE #define OSSL_BAD_ASYNC_FD INVALID_HANDLE_VALUE +# endif #else #define OSSL_ASYNC_FD int #define OSSL_BAD_ASYNC_FD -1 @@ -37,6 +39,7 @@ typedef struct async_wait_ctx_st ASYNC_WAIT_CTX; int ASYNC_init_thread(size_t max_size, size_t init_size); void ASYNC_cleanup_thread(void); +#ifdef OSSL_ASYNC_FD ASYNC_WAIT_CTX *ASYNC_WAIT_CTX_new(void); void ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx); int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key, @@ -52,6 +55,7 @@ int ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd, size_t *numaddfds, OSSL_ASYNC_FD *delfd, size_t *numdelfds); int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key); +#endif int ASYNC_is_capable(void); |