diff --git a/9pfs.c b/9pfs.c index 2c481bd..f5c487c 100644 --- a/9pfs.c +++ b/9pfs.c @@ -30,7 +30,7 @@ enum { CACHECTLSIZE = 8, /* sizeof("cleared\n") - 1 */ - MSIZE = 8192 + MSIZE_9P = 8192 }; void dir2stat(struct stat*, Dir*); @@ -505,7 +505,7 @@ main(int argc, char *argv[]) freeaddrinfo(ainfo); init9p(); - msize = _9pversion(MSIZE); + msize = _9pversion(MSIZE_9P); if(doauth){ authfid = _9pauth(AUTHFID, user, NULL); ai = auth_proxy(authfid, auth_getkey, "proto=p9any role=client"); diff --git a/libc.h b/libc.h index 099adba..aac03c5 100644 --- a/libc.h +++ b/libc.h @@ -61,6 +61,10 @@ typedef unsigned char uchar; typedef unsigned long long uvlong; typedef long long vlong; +#ifndef __GLIBC__ +typedef unsigned long ulong; +#endif + typedef struct Qid {