Skip to content

Commit 6d9e4f1

Browse files
committed
fetch: fix build on Go 1.14
workaround golang/go#37479
1 parent 7715d35 commit 6d9e4f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/fetch/cgostruct.in.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import "C"
1111
type RttEst C.RttEst
1212

1313
// Per-segment state.
14-
type SegState C.FetchSeg
14+
type SegState C.struct_FetchSeg
15+
16+
// 'struct_' is necessary to workaround https://github.com/golang/go/issues/37479 for Go 1.14
1517

1618
// Window of segment states.
1719
type Window C.FetchWindow

0 commit comments

Comments
 (0)