Ticket #8406: 0001-Fix-bfs_fuse-build-on-Ubuntu-10.04-LTS.patch

File 0001-Fix-bfs_fuse-build-on-Ubuntu-10.04-LTS.patch, 879 bytes (added by idefix, 12 years ago)

Patch to fix building bfs_fuse on Ubuntu 10.04 LTS

  • src/tools/fs_shell/fuse.cpp

    From 57517ca8389371201200068eb46575cacae2cd16 Mon Sep 17 00:00:00 2001
    From: Jeroen Oortwijn <oortwijn@gmail.com>
    Date: Tue, 27 Mar 2012 21:55:21 +0200
    Subject: [PATCH] Fix bfs_fuse build on Ubuntu 10.04 LTS
    
    * FUSE_OPT_END is defined as { .templ = NULL } in old FUSE headers (used in
      Ubuntu 10.04 LTS), which isn't supported in C++.
    * Fixes ticket #8406.
    ---
     src/tools/fs_shell/fuse.cpp |    5 +++++
     1 files changed, 5 insertions(+), 0 deletions(-)
    
    diff --git a/src/tools/fs_shell/fuse.cpp b/src/tools/fs_shell/fuse.cpp
    index e9b09f8..6ccd69a 100644
    a b static mode_t sUmask = 0022;  
    4242
    4343#define PRINTD(x) if (gIsDebug) fprintf(stderr, x)
    4444
     45#ifdef FUSE_OPT_END
     46    #undef FUSE_OPT_END
     47#endif
     48#define FUSE_OPT_END { NULL, 0, 0 }
     49
    4550bool gIsDebug = false;
    4651
    4752static fssh_status_t