Re: [dpdk-dev] [PATCH v8] eal: remove sys/queue.h from public headers.

2021-08-24 Thread William Tu
On Mon, Aug 23, 2021 at 12:14 PM Dmitry Kozlyuk wrote: > > 2021-08-23 13:03 (UTC+), William Tu: > [...] > > /* This macro permits both remove and free var within the loop safely.*/ > > -#ifndef TAILQ_FOREACH_SAFE > > -#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ > > - fo

Re: [dpdk-dev] [PATCH v8] eal: remove sys/queue.h from public headers.

2021-08-23 Thread Dmitry Kozlyuk
2021-08-23 13:03 (UTC+), William Tu: [...] > /* This macro permits both remove and free var within the loop safely.*/ > -#ifndef TAILQ_FOREACH_SAFE > -#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ > - for ((var) = TAILQ_FIRST((head)); \ > - (v

[dpdk-dev] [PATCH v8] eal: remove sys/queue.h from public headers.

2021-08-23 Thread William Tu
Currently there are some public headers that include 'sys/queue.h', which is not POSIX, but usually provided by the Linux/BSD system library. (Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008. Present on the BSDs.) The file is missing on Windows. During the Windows build, DPDK uses a bundled copy, so