diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c index 83f35602..00d76789 100644 --- a/src/lib9/_p9dir.c +++ b/src/lib9/_p9dir.c @@ -84,6 +84,8 @@ _p9dir(struct stat *st, char *name, Dir *d, char **str, char *estr) static int gid, uid; int sz, fd; + fd = -1; + USED(fd); sz = 0; if(d) memset(d, 0, sizeof *d); diff --git a/src/lib9/ffork-FreeBSD.c b/src/lib9/ffork-FreeBSD.c index 71945edc..476ce7ab 100644 --- a/src/lib9/ffork-FreeBSD.c +++ b/src/lib9/ffork-FreeBSD.c @@ -1,4 +1,5 @@ #include +#include "9proc.h" extern int __isthreaded; int