]> git.ipfire.org Git - thirdparty/gnutls.git/commit
locks: define lock functions as a macro
authorDaiki Ueno <ueno@gnu.org>
Wed, 9 Mar 2022 07:07:58 +0000 (08:07 +0100)
committerDaiki Ueno <ueno@gnu.org>
Wed, 9 Mar 2022 07:35:41 +0000 (08:35 +0100)
commit5803bfa3d4febdcf32494e2c2c8f4731cb8be7cd
treeabd4ff31b6123756bf5e2512ca75096d6f9475ab
parentb3b6304e82980c57f34cb0679cce061f14d2c584
locks: define lock functions as a macro

When threads are not supported, glthread_* functions are defined as
no-op and thus dereferencing lock variables in inline functions will
cause compilation error.  This change fixes it by redefining our lock
functions as a macro so it will also be compiled out.

Reported by Fabrice Fontaine in:
https://gitlab.com/gnutls/gnutls/-/issues/1330

Signed-off-by: Daiki Ueno <ueno@gnu.org>
lib/locks.c
lib/locks.h
lib/pkcs11.c
lib/priority.c
lib/verify-tofu.c