mksysinfo: Only define PathMax if PATH_MAX is defined.

From-SVN: r186778
This commit is contained in:
Ian Lance Taylor 2012-04-24 19:12:26 +00:00
parent 3eab78f4e6
commit 1a985a5642
1 changed files with 2 additions and 1 deletions

View File

@ -275,8 +275,9 @@ grep '^const __PC' gen-sysinfo.go |
sed -e 's/^\(const \)__\(PC[^= ]*\)\(.*\)$/\1\2 = __\2/' >> ${OUT}
# The PATH_MAX constant.
grep '^const _PATH_MAX ' gen-sysinfo.go |
if grep '^const _PATH_MAX ' gen-sysinfo.go >/dev/null 2>&1; then
echo 'const PathMax = _PATH_MAX' >> ${OUT}
fi
# epoll constants.
grep '^const _EPOLL' gen-sysinfo.go |