Fix build for DragonFly

This commit is contained in:
Michael Neumann
2016-05-20 15:52:09 +02:00
parent 288a2ece9e
commit f0e5f812ba
2 changed files with 12 additions and 1 deletions

View 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
}

View File

@@ -1,4 +1,4 @@
// +build darwin freebsd
// +build darwin freebsd dragonfly
package util