diff --git a/src/cmd/venti/srv/part.c b/src/cmd/venti/srv/part.c index 9b80b6e6..be53d8b9 100644 --- a/src/cmd/venti/srv/part.c +++ b/src/cmd/venti/srv/part.c @@ -1,7 +1,13 @@ #ifdef PLAN9PORT /* SORRY! */ #include #include +#ifdef __linux__ /* REALLY SORRY! */ +#define CANBLOCKSIZE 1 #include +#elif defined(__FreeBSD__) +#define CANBLOCKSIZE 1 +#include +#include #endif #include "stdinc.h" #include @@ -137,7 +143,7 @@ initpart(char *name, int mode) if(hi == 0) hi = dir->length; part->size = hi - part->offset; -#ifdef _LIBC_H_ +#ifdef CANBLOCKSIZE { struct statfs sfs; if(fstatfs(part->fd, &sfs) >= 0)