summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-28 13:24:06 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-28 13:24:06 +0200
commita52e1524b276acf0f918e5623aaef4b769ff6637 (patch)
tree8ce7112b1d412e0d5f84fdc7dae84c0a34b535c6
parente507ee0e7dae1461a663cd1e81f89bfe3b2fadef (diff)
dlfcn: Static pthread initializer
-rw-r--r--src/linker/dlfcn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker/dlfcn.c b/src/linker/dlfcn.c
index 5fb6899..38fc215 100644
--- a/src/linker/dlfcn.c
+++ b/src/linker/dlfcn.c
@@ -53,7 +53,7 @@ static const char *dl_errors[] = {
#define likely(expr) __builtin_expect (expr, 1)
#define unlikely(expr) __builtin_expect (expr, 0)
-pthread_mutex_t apkenv_dl_lock = PTHREAD_MUTEX_INITIALIZER;
+static pthread_mutex_t apkenv_dl_lock = PTHREAD_MUTEX_INITIALIZER;
static void set_dlerror(int err)
{