plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit d765c37110688fc763c964628d410cb039510b0e
parent 3409bc9ae1614ba47430a3f593fdbe5fc177c878
Author: David du Colombier <0intro@gmail.com>
Date:   Wed, 27 Jun 2012 20:02:03 +0200

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

Diffstat:
Msrc/lib9/_p9dialparse.c | 1+
Msrc/lib9/dirread.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib9/_p9dialparse.c b/src/lib9/_p9dialparse.c @@ -3,6 +3,7 @@ #include <libc.h> #include <sys/types.h> +#include <sys/socket.h> #include <netdb.h> #include <sys/un.h> #include <netinet/in.h> diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c @@ -22,7 +22,7 @@ mygetdents(int fd, struct dirent *buf, int n) 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__)