diff --git a/Lib/go/goruntime.swg b/Lib/go/goruntime.swg index ad044f8ba..ff33c3b41 100644 --- a/Lib/go/goruntime.swg +++ b/Lib/go/goruntime.swg @@ -165,6 +165,9 @@ static _gostring_ _swig_makegostring(const char *p, size_t l) { %insert(go_header) %{ import _ "runtime/cgo" +import "unsafe" + +type _ unsafe.Pointer %} @@ -173,9 +176,12 @@ import _ "runtime/cgo" %insert(go_header) %{ import "syscall" +import "unsafe" type _ syscall.Sockaddr +type _ unsafe.Pointer + %} #endif