mirror of
https://github.com/asciinema/asciinema.git
synced 2026-05-18 05:04:50 +02:00
Merge pull request #158 from mneumann/fix_dragonfly
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user