Closed gperciva closed 2 years ago
Another option would be to add that to tar/bsdtar_platform.h
and libarchive/archive_platform.h
, instead of individual .c
files.
Actually, the "most correct" solution would be to add it to configure
. That turned out to be easier than I expected.
Hmm, continued testing is running into some weird issues on Hurd. Let's revisit this later.
Depends on #525. I suspect that you won't want to merge this particular PR, but I thought it was worth putting it on github.
The only thing which stops git master from compiling on GNU Hurd is the lack of
PATH_MAX
. A quick hack would be that if we don't havePATH_MAX
, we could use_POSIX_PATH_MAX
(which is 256) instead.A careful reading of the POSIX page for
<limits.h>
reveals:As stated, the recommended solution is to get the maximum length via
pathconf()
dynamically. However, that would require more intrusive rewriting of some libarchive code.