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:
Augustin Cavalier 2020-03-22 20:52:37 -04:00
parent 9c878a9a89
commit cc0823d82e

View File

@ -12,6 +12,7 @@
#define pthread_mutex_t mutex
#undef PTHREAD_MUTEX_INITIALIZER
#define PTHREAD_MUTEX_INITIALIZER MUTEX_INITIALIZER(__FILE__)
#define pthread_mutex_init(mtx, attr) mutex_init(mtx, __FILE__)
#define pthread_mutex_destroy mutex_destroy