]> granicus.if.org Git - curl/commit
polarssl_threadlock: remove conditionally unused code
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 5 Apr 2019 17:46:05 +0000 (19:46 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 11 Apr 2019 19:08:42 +0000 (21:08 +0200)
commitbb0b10135caf58f82ee9e9d38f400880a7e5c9cc
treeeea3b89cf89e62cde55060f85baebe5db1c50384
parentd250ed4753b74889fb699a9ee638d7d2e48c2b01
polarssl_threadlock: remove conditionally unused code

Make functions no-ops if neither both USE_THREADS_POSIX and
HAVE_PTHREAD_H nor both USE_THREADS_WIN32 and HAVE_PROCESS_H are
defined. Previously, if only one of them was defined, there was either
code compiled that did nothing useful or the wrong header included for
the functions used.

Also, move POLARSSL_MUTEX_T define to implementation file as it's not
used externally.

Closes https://github.com/curl/curl/pull/3739
lib/vtls/polarssl_threadlock.c
lib/vtls/polarssl_threadlock.h