[dpdk-dev] [PATCH v1 38/72] net/mlx5/windows: add pthread initializer definition
Ophir Munk
ophirmu at nvidia.com
Wed Oct 28 00:23:01 CET 2020
PTHREAD_MUTEX_INITIALIZER is a Linux macro defined in
/usr/include/pthread.h. It is used by mlx5 PMD but it is not included
in DPDK Windows pthread implementation. Therefore define it privately
in windows/mlx5_os.h file.
Signed-off-by: Ophir Munk <ophirmu at nvidia.com>
---
drivers/net/mlx5/windows/mlx5_os.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/mlx5/windows/mlx5_os.h b/drivers/net/mlx5/windows/mlx5_os.h
index bb1aa27..5f4abc3 100644
--- a/drivers/net/mlx5/windows/mlx5_os.h
+++ b/drivers/net/mlx5/windows/mlx5_os.h
@@ -16,4 +16,5 @@ enum {
#define PCI_DRV_FLAGS 0
+#define PTHREAD_MUTEX_INITIALIZER {(void *)-1, -1, 0, 0, 0, 0}
#endif /* RTE_PMD_MLX5_OS_H_ */
--
2.8.4
More information about the dev
mailing list