mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Add cancelreader bsd go1.17 compilation flags
and fix "in switch on ident (mismatched types uint64 and uint32)" error when building for 32-bit bsd
This commit is contained in:
committed by
Christian Muehlhaeuser
parent
cf3955fbe2
commit
7b288f4353
@@ -1,3 +1,4 @@
|
||||
//go:build darwin || freebsd || netbsd || openbsd
|
||||
// +build darwin freebsd netbsd openbsd
|
||||
|
||||
// nolint:revive
|
||||
@@ -133,7 +134,8 @@ func (r *kqueueCancelReader) wait() error {
|
||||
break
|
||||
}
|
||||
|
||||
switch events[0].Ident {
|
||||
ident := uint64(events[0].Ident)
|
||||
switch ident {
|
||||
case uint64(r.file.Fd()):
|
||||
return nil
|
||||
case uint64(r.cancelSignalReader.Fd()):
|
||||
|
||||
Reference in New Issue
Block a user