mirror of git://gcc.gnu.org/git/gcc.git
syscall: Add definition for NLA_HDRLEN
This change updates mksysinfo.sh so it correctly
includes the define NLA_HDRLEN in the syscall package.
Fixes golang/go/#13629
Reviewed-on: https://go-review.googlesource.com/17893
From-SVN: r231796
This commit is contained in:
parent
7ce9105fd6
commit
474c8a0757
|
|
@ -267,6 +267,9 @@ enum {
|
||||||
#ifdef TUNGETFILTER
|
#ifdef TUNGETFILTER
|
||||||
TUNGETFILTER_val = TUNGETFILTER,
|
TUNGETFILTER_val = TUNGETFILTER,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef NLA_HDRLEN
|
||||||
|
NLA_HDRLEN_val = NLA_HDRLEN,
|
||||||
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
EOF
|
EOF
|
||||||
|
|
@ -1075,8 +1078,6 @@ if ! grep '^const TUNGETFILTER' ${OUT} >/dev/null 2>&1; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# The ioctl flags for terminal control
|
# The ioctl flags for terminal control
|
||||||
grep '^const _TC[GS]ET' gen-sysinfo.go | grep -v _val | \
|
grep '^const _TC[GS]ET' gen-sysinfo.go | grep -v _val | \
|
||||||
sed -e 's/^\(const \)_\(TC[GS]ET[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
sed -e 's/^\(const \)_\(TC[GS]ET[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
|
|
@ -1422,9 +1423,15 @@ grep '^type _rtnexthop ' gen-sysinfo.go | \
|
||||||
# The GNU/Linux netlink flags.
|
# The GNU/Linux netlink flags.
|
||||||
grep '^const _NETLINK_' gen-sysinfo.go | \
|
grep '^const _NETLINK_' gen-sysinfo.go | \
|
||||||
sed -e 's/^\(const \)_\(NETLINK_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
sed -e 's/^\(const \)_\(NETLINK_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
grep '^const _NLA_' gen-sysinfo.go | \
|
grep '^const _NLA_' gen-sysinfo.go | grep -v '_val =' | \
|
||||||
sed -e 's/^\(const \)_\(NLA_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
sed -e 's/^\(const \)_\(NLA_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
|
|
||||||
|
if ! grep '^const NLA_HDRLEN' ${OUT} >/dev/null 2>&1; then
|
||||||
|
if grep '^const _NLA_HDRLEN_val' ${OUT} >/dev/null 2>&1; then
|
||||||
|
echo 'const NLA_HDRLEN = _NLA_HDRLEN_val' >> ${OUT}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# The GNU/Linux packet socket flags.
|
# The GNU/Linux packet socket flags.
|
||||||
grep '^const _PACKET_' gen-sysinfo.go | \
|
grep '^const _PACKET_' gen-sysinfo.go | \
|
||||||
sed -e 's/^\(const \)_\(PACKET_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
sed -e 's/^\(const \)_\(PACKET_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue