From 212838f12acb5f92ca38ab3b90c0be1e8c17dd8c Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 20 Jan 2017 07:38:46 +0100 Subject: [PATCH] [Companion] clang / linux compilation fix --- companion/src/storage/mountlist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/companion/src/storage/mountlist.cpp b/companion/src/storage/mountlist.cpp index a17dfb261..341e00100 100644 --- a/companion/src/storage/mountlist.cpp +++ b/companion/src/storage/mountlist.cpp @@ -919,9 +919,9 @@ read_file_system_list (bool need_fs_type) *mtail = NULL; return mount_list; - -#if !defined(__clang__) - free_then_fail: + +#if defined(MOUNTED_GETMNTENT1) || defined(MOUNTED_GETMNTENT2) || defined(MOUNTED_GETMNT) || defined(MOUNTED_FREAD) || defined(MOUNTED_FREAD_FSTYP) + free_then_fail: { int saved_errno = errno; *mtail = NULL;