You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
907 B

  1. --- a/evhtp.c
  2. +++ b/evhtp.c
  3. @@ -2863,7 +2863,7 @@ htp__accept_cb_(struct evconnlistener * serv, int fd, struct sockaddr * s, int s
  4. } /* htp__accept_cb_ */
  5. #ifndef EVHTP_DISABLE_SSL
  6. -#ifndef EVHTP_DISABLE_EVTHR
  7. +#if !defined(EVHTP_DISABLE_EVTHR) && (OPENSSL_VERSION_NUMBER < 0x10100000L)
  8. #ifndef WIN32
  9. #define _HTP_tid (unsigned long)pthread_self()
  10. @@ -4575,7 +4575,7 @@ htp__use_threads_(evhtp_t * htp,
  11. htp->thread_init_cb = init_cb;
  12. htp->thread_exit_cb = exit_cb;
  13. -#ifndef EVHTP_DISABLE_SSL
  14. +#if !defined(EVHTP_DISABLE_EVTHR) && (OPENSSL_VERSION_NUMBER < 0x10100000L)
  15. evhtp_ssl_use_threads();
  16. #endif
  17. @@ -4723,7 +4723,7 @@ evhtp_set_post_accept_cb(evhtp_t * htp, evhtp_post_accept_cb cb, void * arg)
  18. }
  19. #ifndef EVHTP_DISABLE_SSL
  20. -#ifndef EVHTP_DISABLE_EVTHR
  21. +#if !defined(EVHTP_DISABLE_EVTHR) && (OPENSSL_VERSION_NUMBER < 0x10100000L)
  22. int
  23. evhtp_ssl_use_threads(void)
  24. {