1. Russ Cox
  2. plan9port

Commits

David du Colombier  committed 6daaa8f

lib9: fix openbsd build

Fix build error and warning on OpenBSD 5.1,
as reported by Dimitri Sokolyuk.

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

  • Participants
  • Parent commits 697c23c
  • Branches default

Comments (0)

Files changed (2)

File src/lib9/_p9dialparse.c

View file
 #include <libc.h>
 
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netdb.h>
 #include <sys/un.h>
 #include <netinet/in.h>

File src/lib9/dirread.c

View file
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
-	long off;
+	off_t off;
 	return getdirentries(fd, (void*)buf, n, &off);
 }
 #elif defined(__sun__) || defined(__NetBSD__)