nvme_disk: Undefine PTHREAD_MUTEX_INITIALIZER before defining it.
Some things seem to indirectly include <thread_types> which includes <pthread.h>. Fixes a warning.
This commit is contained in:
parent
9c878a9a89
commit
cc0823d82e
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#define pthread_mutex_t mutex
|
#define pthread_mutex_t mutex
|
||||||
|
#undef PTHREAD_MUTEX_INITIALIZER
|
||||||
#define PTHREAD_MUTEX_INITIALIZER MUTEX_INITIALIZER(__FILE__)
|
#define PTHREAD_MUTEX_INITIALIZER MUTEX_INITIALIZER(__FILE__)
|
||||||
#define pthread_mutex_init(mtx, attr) mutex_init(mtx, __FILE__)
|
#define pthread_mutex_init(mtx, attr) mutex_init(mtx, __FILE__)
|
||||||
#define pthread_mutex_destroy mutex_destroy
|
#define pthread_mutex_destroy mutex_destroy
|
||||||
|
Loading…
Reference in New Issue
Block a user