diff options
author | Brad King <brad.king@kitware.com> | 2018-09-28 16:41:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-01 12:22:38 (GMT) |
commit | 3c0bfb596fa53596b16c2f6ed0868f15475b5bf7 (patch) | |
tree | cd95ed8e5d43ff87e8e46f76db2b9c4f3bbe3b57 /Source/cmGeneratorTarget.cxx | |
parent | f478fa633daeb1432805821adddc40730ffd283d (diff) | |
download | CMake-3c0bfb596fa53596b16c2f6ed0868f15475b5bf7.zip CMake-3c0bfb596fa53596b16c2f6ed0868f15475b5bf7.tar.gz CMake-3c0bfb596fa53596b16c2f6ed0868f15475b5bf7.tar.bz2 |
libuv: do not require PATH_MAX to be defined
Some platforms (e.g. GNU/Hurd) do not define PATH_MAX. Add a few other
variants and a fallback constant. Also use alternatives where possible:
* For readlink(), use lstat() to read the length of the link first.
If it is not a symlink, report EINVAL before trying to allocate.
If the size reports as zero, fall back one of the PATH_MAX variants.
* For realpath(), POSIX 2008 allows us to pass a NULL buffer
to tell it to malloc() internally.
This patch was inspired by downstream patches in Debian packaging
for issues 897061 and 909011.
Issue: #18337
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
0 files changed, 0 insertions, 0 deletions