[PATCH v2 10/43] ethdev: replace use of sys/queue.h

Stephen Hemminger
2025-08-25T03:42:42Z

Use rte_bsd_queue.h instead.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/ethdev/ethdev_private.h | 3 +--
lib/ethdev/rte_ethdev.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/ethdev/ethdev_private.h b/lib/ethdev/ethdev_private.h
index b07b1b4c42..6f10cff474 100644
--- a/lib/ethdev/ethdev_private.h
+++ b/lib/ethdev/ethdev_private.h
@@ -5,8 +5,7 @@
#ifndef _ETH_PRIVATE_H_
#define _ETH_PRIVATE_H_

-#include <sys/queue.h>
-
+#include <rte_bsd_queue.h>
#include <rte_eal_memconfig.h>
#include <rte_malloc.h>
#include <rte_os_shim.h>
diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c
index dd7c00bc94..1e16a2825a 100644
--- a/lib/ethdev/rte_ethdev.c
+++ b/lib/ethdev/rte_ethdev.c
@@ -9,8 +9,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/queue.h>

+#include <rte_bsd_queue.h>
#include <bus_driver.h>
#include <eal_export.h>
#include <rte_log.h>
--
2.47.2