Skip to content

Commit e8d7bee

Browse files
author
JkLondon
committed
fix of win
1 parent 4f25833 commit e8d7bee

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

go.mod

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module github.com/erigontech/mdbx-go
22

3-
go 1.20
3+
go 1.23.0
4+
5+
toolchain go1.24.1
46

57
require github.com/ianlancetaylor/cgosymbolizer v0.0.0-20241129212102-9c50ad6b591e
8+
9+
require golang.org/x/sys v0.31.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
github.com/ianlancetaylor/cgosymbolizer v0.0.0-20241129212102-9c50ad6b591e h1:8AnObPi8WmIgjwcidUxaREhXMSpyUJeeSrIkZTXdabw=
22
github.com/ianlancetaylor/cgosymbolizer v0.0.0-20241129212102-9c50ad6b591e/go.mod h1:DvXTE/K/RtHehxU8/GtDs4vFtfw64jJ3PaCnFri8CRg=
3+
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
4+
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=

mdbx/threads/threads_windows.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
package threads
44

5-
import "syscall"
5+
import (
6+
"golang.org/x/sys/windows"
7+
)
68

79
// CurrentThreadID returns the Windows thread ID.
810
func CurrentThreadID() uint64 {
9-
return uint64(syscall.GetCurrentThreadId())
11+
return uint64(windows.GetCurrentThreadId())
1012
}

0 commit comments

Comments
 (0)