mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 08:22:26 -06:00
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
This commit is contained in:
parent
879ca2d2f8
commit
ebbdeee0bb
114 changed files with 891873 additions and 192475 deletions
12
vendor/modernc.org/libc/libc_darwin_amd64.go
generated
vendored
12
vendor/modernc.org/libc/libc_darwin_amd64.go
generated
vendored
|
|
@ -6,6 +6,7 @@ package libc // import "modernc.org/libc"
|
|||
|
||||
import (
|
||||
"strings"
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
|
|
@ -241,12 +242,11 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t {
|
|||
if __ccgo_strace {
|
||||
trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2))
|
||||
}
|
||||
panic(todo(""))
|
||||
// n := time.Now().UTC().Unix()
|
||||
// if tloc != 0 {
|
||||
// *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n)
|
||||
// }
|
||||
// return types.Time_t(n)
|
||||
n := time.Now().UTC().Unix()
|
||||
if tloc != 0 {
|
||||
*(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n)
|
||||
}
|
||||
return types.Time_t(n)
|
||||
}
|
||||
|
||||
// // int getrlimit(int resource, struct rlimit *rlim);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue