Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libperfuse Make sure libperfuse still builds on netbsd-5.1



details:   https://anonhg.NetBSD.org/src/rev/cdb40c6f87d0
branches:  trunk
changeset: 767463:cdb40c6f87d0
user:      manu <manu%NetBSD.org@localhost>
date:      Tue Jul 19 07:29:39 2011 +0000

description:
Make sure libperfuse still builds on netbsd-5.1

diffstat:

 lib/libperfuse/ops.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 36bec70bc80b -r cdb40c6f87d0 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Tue Jul 19 06:53:50 2011 +0000
+++ b/lib/libperfuse/ops.c      Tue Jul 19 07:29:39 2011 +0000
@@ -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;
        }



Home | Main Index | Thread Index | Old Index