File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ const (
1414 InitMsg uint16 = 62000
1515 PidAttr uint16 = 27281
1616 ConsolePathAttr uint16 = 27282
17+ // When syscall.NLA_HDRLEN is in gccgo, take this out.
18+ syscall_NLA_HDRLEN = (syscall .SizeofNlAttr + syscall .NLA_ALIGNTO - 1 ) & ^ (syscall .NLA_ALIGNTO - 1 )
1719)
1820
1921type Int32msg struct {
@@ -34,7 +36,7 @@ func (msg *Int32msg) Serialize() []byte {
3436}
3537
3638func (msg * Int32msg ) Len () int {
37- return syscall . NLA_HDRLEN + 4
39+ return syscall_NLA_HDRLEN + 4
3840}
3941
4042// bytemsg has the following representation
@@ -56,5 +58,5 @@ func (msg *Bytemsg) Serialize() []byte {
5658}
5759
5860func (msg * Bytemsg ) Len () int {
59- return syscall . NLA_HDRLEN + len (msg .Value ) + 1 // null-terminated
61+ return syscall_NLA_HDRLEN + len (msg .Value ) + 1 // null-terminated
6062}
You can’t perform that action at this time.
0 commit comments