Commits

Russ Cox  committed 6e1e4d8

lib9: fix Mac warning

R=rsc
http://codereview.appspot.com/6749053

  • Participants
  • Parent commits 4f5041d

Comments (0)

Files changed (1)

File src/lib9/dirread.c

 	nn = getdirentries(fd, (void*)buf, n, &off);
 	return nn;
 }
-#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__APPLE__) 
+static int
+mygetdents(int fd, struct dirent *buf, int n)
+{
+	long off;
+	return getdirentries(fd, (void*)buf, n, &off);
+}
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {