Module Name: src Committed By: manu Date: Tue Jul 19 07:29:39 UTC 2011
Modified Files: src/lib/libperfuse: ops.c Log Message: Make sure libperfuse still builds on netbsd-5.1 To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/lib/libperfuse/ops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libperfuse/ops.c diff -u src/lib/libperfuse/ops.c:1.34 src/lib/libperfuse/ops.c:1.35 --- src/lib/libperfuse/ops.c:1.34 Mon Jul 18 02:14:01 2011 +++ src/lib/libperfuse/ops.c Tue Jul 19 07:29:39 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.34 2011/07/18 02:14:01 manu Exp $ */ +/* $NetBSD: ops.c,v 1.35 2011/07/19 07:29:39 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -3135,6 +3135,7 @@ puffs_len = foh->len - sizeof(*foh); if (attrs != NULL) { +#ifdef PUFFS_EXTATTR_LIST_LENPREFIX /* * Convert the FUSE reply to length prefixed strings * if this is what the kernel wants. @@ -3148,6 +3149,7 @@ *(np + i) = (uint8_t)attrlen; } } +#endif /* PUFFS_EXTATTR_LIST_LENPREFIX */ (void)memcpy(attrs, np, puffs_len); *resid -= puffs_len; }