commit 0613fe4b84dff47013d2e97345d6c26b0f4a9ef3 from: rsc date: Tue Jul 19 22:59:09 2005 UTC fix freebsd commit - 48458cb2b1a35e034dacd18017365a97e2bfb9c4 commit + 0613fe4b84dff47013d2e97345d6c26b0f4a9ef3 blob - 9b80b6e691bfd3e6ee94946fc825623966d0661b blob + be53d8b9417c212cb5fd7300bc7c781d25e1f4f9 --- src/cmd/venti/srv/part.c +++ 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)