From cc0823d82e2ed00b8904822a0af028fa1df57e73 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 22 Mar 2020 20:52:37 -0400 Subject: [PATCH] nvme_disk: Undefine PTHREAD_MUTEX_INITIALIZER before defining it. Some things seem to indirectly include which includes . Fixes a warning. --- src/add-ons/kernel/drivers/disk/nvme/compat/nvme_platform.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/kernel/drivers/disk/nvme/compat/nvme_platform.h b/src/add-ons/kernel/drivers/disk/nvme/compat/nvme_platform.h index 90418e2f8b..41a4ddb8c1 100644 --- a/src/add-ons/kernel/drivers/disk/nvme/compat/nvme_platform.h +++ b/src/add-ons/kernel/drivers/disk/nvme/compat/nvme_platform.h @@ -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