From 2d13a472032ce44632ea70a35097b32d47b96d50 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 21 Aug 2015 21:40:59 +0800 Subject: [PATCH] rbd: fix the FTBFS on old boost introduced by 2050d08 in boost 1.49, BOOST_SCOPE_EXIT() does not accept capture_tuple, only `(capture) (capture) ...` is supported. Signed-off-by: Kefu Chai --- src/rbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rbd.cc b/src/rbd.cc index 72f81df7e63..bbcea006352 100755 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -1357,7 +1357,7 @@ static int do_export_diff(librbd::Image& image, const char *fromsnapname, if (fd < 0) return -errno; - BOOST_SCOPE_EXIT(&r, &fd, &path) { + BOOST_SCOPE_EXIT((&r) (&fd) (&path)) { close(fd); if (r < 0 && fd != 1) { remove(path); -- 2.47.3