|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 2/5] tools/libfsimage: Fix PATH_MAX redefinition error
Hi Costin, On 28/04/2021 19:35, Costin Lupu wrote: On 4/28/21 12:04 PM, Julien Grall wrote:On 27/04/2021 13:05, Costin Lupu wrote: That's annoying :). I had a look on a FreeBSD source tree to see how this is done there. It seems that there are lots of submodules, apps and libs that redefine PATH_MAX in case it wasn't defined before so the changes introduced by the current patch seem to be very popular. Another clean approach I saw was for jemalloc [1] which includes unistd.h. They redefine PATH_MAX only for MS C compiler, but AFAIK we don't need that. I am not aware of anyone using MS C compiler to build the tools. So IMHO the current changes seem to be the most portable, but I'm open to any suggestions. Right, this is the good thing of your approach. I can't see a better solution if the system limits.h doesn't always define PATH_MAX. So: Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx> Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |