diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 4fe80f23..0829eebc 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3841,8 +3841,10 @@ MHD_get_version (void) | |||
3841 | #endif // __GNUC__ | 3841 | #endif // __GNUC__ |
3842 | 3842 | ||
3843 | #if HTTPS_SUPPORT | 3843 | #if HTTPS_SUPPORT |
3844 | #if GCRYPT_VERSION_NUMBER < 0x010600 | ||
3844 | GCRY_THREAD_OPTION_PTHREAD_IMPL; | 3845 | GCRY_THREAD_OPTION_PTHREAD_IMPL; |
3845 | #endif | 3846 | #endif |
3847 | #endif | ||
3846 | 3848 | ||
3847 | 3849 | ||
3848 | /** | 3850 | /** |
@@ -3856,9 +3858,12 @@ MHD_init () | |||
3856 | 3858 | ||
3857 | #ifdef WINDOWS | 3859 | #ifdef WINDOWS |
3858 | plibc_init ("GNU", "libmicrohttpd"); | 3860 | plibc_init ("GNU", "libmicrohttpd"); |
3859 | #endif | 3861 | #endif# |
3860 | #if HTTPS_SUPPORT | 3862 | #if HTTPS_SUPPORT |
3863 | #if GCRYPT_VERSION_NUMBER < 0x010600 | ||
3861 | gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); | 3864 | gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); |
3865 | #endif | ||
3866 | gcry_check_version (NULL); | ||
3862 | gnutls_global_init (); | 3867 | gnutls_global_init (); |
3863 | #endif | 3868 | #endif |
3864 | } | 3869 | } |