mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 05:06:17 +00:00
Fix Go binding build error (#1535)
This commit is contained in:
parent
3220ff6941
commit
2a5451a35c
|
@ -134,8 +134,7 @@ func (self *Module) SetWasiAddrPool(addrPool [][]byte) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set module's wasi domain lookup pool */
|
/* Set module's wasi domain lookup pool */
|
||||||
func(self *Module) SetWasiNsLookupPool(nsLookupPool[][] byte)
|
func(self *Module) SetWasiNsLookupPool(nsLookupPool [][]byte) {
|
||||||
{
|
|
||||||
var nsLookupPoolPtr **C.char
|
var nsLookupPoolPtr **C.char
|
||||||
var nsLookupPoolSize C.uint
|
var nsLookupPoolSize C.uint
|
||||||
|
|
||||||
|
@ -144,4 +143,4 @@ func(self *Module) SetWasiNsLookupPool(nsLookupPool[][] byte)
|
||||||
nsLookupPoolSize = C.uint(len(nsLookupPool))
|
nsLookupPoolSize = C.uint(len(nsLookupPool))
|
||||||
}
|
}
|
||||||
C.wasm_runtime_set_wasi_ns_lookup_pool(self.module, nsLookupPoolPtr, nsLookupPoolSize)
|
C.wasm_runtime_set_wasi_ns_lookup_pool(self.module, nsLookupPoolPtr, nsLookupPoolSize)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user