Merge pull request #158 from mneumann/fix_dragonfly

Fix build for DragonFly
This commit is contained in:
Marcin Kulik
2016-05-20 19:56:10 +02:00
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