mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 19:58:03 +01:00
Fix build for DragonFly
This commit is contained in:
11
util/fdset_dragonfly_amd64.go
Normal file
11
util/fdset_dragonfly_amd64.go
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
package util
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
func FD_SET(p *syscall.FdSet, fd int) {
|
||||||
|
p.Bits[fd/64] |= 1 << uint(fd) % 64
|
||||||
|
}
|
||||||
|
|
||||||
|
func FD_ISSET(p *syscall.FdSet, fd int) bool {
|
||||||
|
return (p.Bits[fd/64] & (1 << uint(fd) % 64)) != 0
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// +build darwin freebsd
|
// +build darwin freebsd dragonfly
|
||||||
|
|
||||||
package util
|
package util
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user