aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-03-01 17:22:29 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-03-01 17:22:29 +0000
commit116b061e74bb406778c8ec140310588794d8c1ef (patch)
tree49cf472b341af31f72f19e0ed60d00f2a253b8e4 /libgo
parentf34ce44b670778710e649492922f9f4ef349060b (diff)
downloadgcc-116b061e74bb406778c8ec140310588794d8c1ef.zip
gcc-116b061e74bb406778c8ec140310588794d8c1ef.tar.gz
gcc-116b061e74bb406778c8ec140310588794d8c1ef.tar.bz2
mksysinfo: Define MADV_ constants for madvise.
From-SVN: r184752
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 5e3e9bb..f2dcda6 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -191,6 +191,8 @@ grep '^const _PROT_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\(PROT_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
grep '^const _MAP_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\(MAP_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
+grep '^const _MADV_' gen-sysinfo.go | \
+ sed -e 's/^\(const \)_\(MADV_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
# Process status constants.
grep '^const _W' gen-sysinfo.go |