Commit 3a8ff823 authored by Rob Pike's avatar Rob Pike

fix linux build

R=rsc
OCL=27579
CL=27579
parent 1f6463f8
......@@ -114,9 +114,9 @@ func (p *pollster) WaitFD(nsec int64) (fd int64, mode int, err *os.Error) {
if nsec > 0 {
msec = (nsec + 1e6 - 1)/1e6;
}
n, e := syscall.Epoll_wait(p.epfd, evarray, msec);
n, e := syscall.Epoll_wait(p.epfd, &evarray, msec);
for e == syscall.EAGAIN || e == syscall.EINTR {
n, e = syscall.Epoll_wait(p.epfd, evarray, msec);
n, e = syscall.Epoll_wait(p.epfd, &evarray, msec);
}
if e != 0 {
return -1, 0, os.ErrnoToError(e);
......
......@@ -59,7 +59,7 @@ func readdirnames(file *File, count int) (names []string, err *os.Error) {
if dirent.Ino == 0 { // File absent in directory.
continue
}
var name = string(dirent.Name[0:clen(dirent.Name)]);
var name = string(dirent.Name[0:clen(&dirent.Name)]);
if name == "." || name == ".." { // Useless names
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment