tags 778156 +patch
thanks

This package has multiple (identical) definitions of two inline functions,
which was allowed in gnu89, but is no longer allowed. This kludge of a
patch removes the offending redefinitions when compiling with gcc5. Another
workaround would be to pass "-std=gnu89" to the compiler, but this makes
the breakage more obvious. This really should be fixed upstream.

--- unionfs-fuse-0.24.orig/src/hashtable_itr.c
+++ unionfs-fuse-0.24/src/hashtable_itr.c
@@ -37,7 +37,7 @@ hashtable_iterator(struct hashtable *h)
 /*****************************************************************************/
 /* key      - return the key of the (key,value) pair at the current position */
 /* value    - return the value of the (key,value) pair at the current position 
*/
-
+#if !(__GNUC__==5)
 void *
 hashtable_iterator_key(struct hashtable_itr *i)
 { return i->e->k; }
@@ -45,6 +45,7 @@ hashtable_iterator_key(struct hashtable_
 void *
 hashtable_iterator_value(struct hashtable_itr *i)
 { return i->e->v; }
+#endif

 /*****************************************************************************/
 /* advance - advance the iterator to the next element

-- 
Brett Johnson <br...@hp.com>


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to