Errno ETOOMANYREFS may not be supported under Windows. In such cases
add its definition.
Signed-off-by: Ophir Munk <ophi...@nvidia.com>
---
 drivers/net/mlx5/windows/mlx5_os.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/mlx5/windows/mlx5_os.h 
b/drivers/net/mlx5/windows/mlx5_os.h
index dd3515c..563cfa4 100644
--- a/drivers/net/mlx5/windows/mlx5_os.h
+++ b/drivers/net/mlx5/windows/mlx5_os.h
@@ -18,4 +18,7 @@ enum {
 
 #define PTHREAD_MUTEX_INITIALIZER {(void *)-1, -1, 0, 0, 0, 0}
 #define rte_intr_free_epoll_fd
+#ifndef ETOOMANYREFS
+#define ETOOMANYREFS 109     /* Too many references: cannot splice */
+#endif
 #endif /* RTE_PMD_MLX5_OS_H_ */
-- 
2.8.4

Reply via email to