diff options
author | David du Colombier <0intro@gmail.com> | 2012-06-27 20:02:03 +0200 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2012-06-27 20:02:03 +0200 |
commit | d765c37110688fc763c964628d410cb039510b0e (patch) | |
tree | 6176e3a0a453dc407331a0afb47a5a85f4775a5c /src/lib9 | |
parent | 3409bc9ae1614ba47430a3f593fdbe5fc177c878 (diff) | |
download | plan9port-d765c37110688fc763c964628d410cb039510b0e.tar.gz plan9port-d765c37110688fc763c964628d410cb039510b0e.tar.bz2 plan9port-d765c37110688fc763c964628d410cb039510b0e.zip |
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 (limited to 'src/lib9')
-rw-r--r-- | src/lib9/_p9dialparse.c | 1 | ||||
-rw-r--r-- | src/lib9/dirread.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib9/_p9dialparse.c b/src/lib9/_p9dialparse.c index d8e91003..cc91408d 100644 --- 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 index 74dd1422..30a9065a 100644 --- 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__) |