summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-24 19:12:26 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-24 19:12:26 +0000
commit7eaf7f7fb0f84466fcfa38db893d654155d99688 (patch)
treeec7a74ffe7ce329ae2dfaba97cb3f0d04145ce8a /libgo
parentf5dfbb105fe4f4aeac1888fe44ae3d5b15288194 (diff)
downloadgcc-7eaf7f7fb0f84466fcfa38db893d654155d99688.tar.gz
mksysinfo: Only define PathMax if PATH_MAX is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186778 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 487965bf3bf..4f5153334aa 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -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 |