summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libusb/core.c2
-rw-r--r--libusb/os/threads_posix.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 0fb6e7b..c897e0f 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -41,7 +41,7 @@ const struct usbi_os_backend * const usbi_backend = &windows_backend;
#endif
struct libusb_context *usbi_default_context = NULL;
-usbi_mutex_static_t default_context_lock = USBI_MUTEX_INITIALIZER;
+static usbi_mutex_static_t default_context_lock = USBI_MUTEX_INITIALIZER;
/**
* \mainpage libusb-1.0 API Reference
diff --git a/libusb/os/threads_posix.h b/libusb/os/threads_posix.h
index 7e34dc5..dc558d4 100644
--- a/libusb/os/threads_posix.h
+++ b/libusb/os/threads_posix.h
@@ -23,7 +23,7 @@
#include <pthread.h>
-#define usbi_mutex_static_t static pthread_mutex_t
+#define usbi_mutex_static_t pthread_mutex_t
#define USBI_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
#define usbi_mutex_static_lock pthread_mutex_lock
#define usbi_mutex_static_unlock pthread_mutex_unlock