[PATCH 2/8] net/ring: build on Windows
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Thu Dec 15 19:09:59 CET 2022
2022-12-15 09:48 (UTC-0800), Tyler Retzlaff:
> On Wed, Dec 14, 2022 at 07:22:15PM -0800, Stephen Hemminger wrote:
> > On Wed, 14 Dec 2022 15:18:08 -0800
> > "Kadam, Pallavi" <pallavi.kadam at intel.com> wrote:
[...]
> > > There is still a build error with clang compiler on Windows
> > > as mentioned by Dmitry:
> > >
> > > ../drivers/net/ring/rte_eth_ring.c:542:12: error: use of undeclared identifier 'PATH_MAX'
> > > char name[PATH_MAX];
> > > ^
> > > #include <rte_os_shim.h> is missing
> > >
> > > >
> >
> > It is in the mingw version but not other compilers.
>
> not sure if it helps but in the sludge of my memory i think you can use
> MAX_PATH.
>
> so maybe a little
> #ifndef PATH_MAX
> #define PATH_MAX MAX_PATH
> #endif
>
> in the os shim?
It is in rte_os_shim.h already (for MinGW), just needs to be included.
More information about the dev
mailing list