diff options
-rw-r--r-- | src/include/k5-thread.h | 2 | ||||
-rw-r--r-- | src/util/support/threads.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index a894d868f..f910c29b4 100644 --- a/src/include/k5-thread.h +++ b/src/include/k5-thread.h @@ -761,7 +761,7 @@ extern int KRB5_CALLCONV krb5int_mutex_unlock (k5_mutex_t *); For now, plugins should use the exported functions, and not the above macros, and use krb5int_mutex_alloc for allocations. */ -#ifdef PLUGIN +#if defined(PLUGIN) || (defined(CONFIG_SMALL) && !defined(THREAD_SUPPORT_IMPL)) #undef k5_mutex_lock #define k5_mutex_lock krb5int_mutex_lock #undef k5_mutex_unlock diff --git a/src/util/support/threads.c b/src/util/support/threads.c index 02c14e5de..8dc9d462e 100644 --- a/src/util/support/threads.c +++ b/src/util/support/threads.c @@ -30,6 +30,7 @@ #include <assert.h> #include <stdlib.h> #include <errno.h> +#define THREAD_SUPPORT_IMPL #include "k5-thread.h" #include "k5-platform.h" #include "supp-int.h" |