diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-07 17:09:10 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-07 17:09:10 +0000 |
commit | 35a02ae0037490ed40c3b0a2be08112d38414d33 (patch) | |
tree | 39c2c0da7b6c220dd344f134fae07fba0d0266b2 /libgo/mksysinfo.sh | |
parent | f14e9371b41a0c54075d54c5867df13b63474191 (diff) | |
download | gcc-35a02ae0037490ed40c3b0a2be08112d38414d33.tar.gz |
libgo: Update to current Go library.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172106 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/mksysinfo.sh')
-rwxr-xr-x | libgo/mksysinfo.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 77d699e75a5..05f4af01ab3 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -57,6 +57,9 @@ cat > sysinfo.c <<EOF #if defined(HAVE_SYS_EPOLL_H) #include <sys/epoll.h> #endif +#if defined(HAVE_SYS_MMAN_H) +#include <sys/mman.h> +#endif #if defined(HAVE_SYS_PTRACE_H) #include <sys/ptrace.h> #endif @@ -131,6 +134,12 @@ grep '^const _SYS_' gen-sysinfo.go | \ grep '^const _S_' gen-sysinfo.go | \ sed -e 's/^\(const \)_\(S_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} +# Mmap constants. +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} + # Process status constants. grep '^const _W' gen-sysinfo.go | sed -e 's/^\(const \)_\(W[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} |