diff options
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} |