commit d439750308e864a61ba67614ea9bb37343441aca from: Russ Cox date: Thu Apr 30 15:01:33 2009 UTC merge commit - 9ea7f9d82f3b929853016ccd12dfd5c044e95d07 commit + d439750308e864a61ba67614ea9bb37343441aca blob - 07bd91d9a4810e07e9900b33b5427a6cd88a0420 blob + e529b8de4b8745721a4a8278f41bfd9e06ce67d0 --- src/cmd/9pfuse/fuse_kernel.h +++ src/cmd/9pfuse/fuse_kernel.h @@ -1,3 +1,6 @@ + + + /* This file defines the kernel interface of FUSE Copyright (C) 2001-2007 Miklos Szeredi @@ -61,13 +64,13 @@ struct fuse_attr { __u64 atime; __u64 mtime; __u64 ctime; -#if (__FreeBSD__ >= 10) +#if (__FreeBSD__ >= 10 && __OSX_VERSION__ >= 100500) __u64 crtime; #endif /* __FreeBSD__ >= 10 */ __u32 atimensec; __u32 mtimensec; __u32 ctimensec; -#if (__FreeBSD__ >= 10) +#if (__FreeBSD__ >= 10 && __OSX_VERSION__ >= 100500) __u32 crtimensec; #endif /* __FreeBSD__ >= 10 */ __u32 mode; @@ -77,6 +80,9 @@ struct fuse_attr { __u32 rdev; #if (__FreeBSD__ >= 10) __u32 flags; /* file flags; see chflags(2) */ +#if __OSX_VERSION__ < 100500 + __u32 padding; +#endif /* __OSX_VERSION__ < 100500 */ #endif /* __FreeBSD__ >= 10 */ }; blob - d5f700aebbf0d9cffb32ad2f1652f3d16d728683 blob + d8d63b413709316e2c6dfe6259ed404c43a4bdf5 --- src/cmd/9pfuse/mkfile +++ src/cmd/9pfuse/mkfile @@ -1,4 +1,5 @@ <$PLAN9/src/mkhdr +<|osxvers TARG=9pfuse blob - /dev/null blob + 4af44da24a4421a9db221ed83eec5a41b46e36eb (mode 755) --- /dev/null +++ src/cmd/9pfuse/osxvers @@ -0,0 +1,7 @@ +#!/bin/sh + +u=`uname` +case "$u" in +Darwin) + sw_vers | awk '$1 == "ProductVersion:" {print $2}' | awk -F. '{printf("CFLAGS=$CFLAGS -DOSX_VERSION=%d%02d%02d\n", $1, $2, $3)}' +esac