diff options
Diffstat (limited to 'src')
-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__) |