$NetBSD: patch-src_foreign_vigra_vigra_cachedfileimage.hxx,v 1.2 2014/12/27 02:46:41 dholland Exp $ --- src/foreign/vigra/vigra/cachedfileimage.hxx.orig 2013-06-25 21:58:48.000000000 +0000 +++ src/foreign/vigra/vigra/cachedfileimage.hxx @@ -554,11 +554,11 @@ class NotifyingDirectionSelector; template class NotifyingDirectionSelector { -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) friend class Notify::self_type; #else friend typename Notify::self_type; #endif protected: NotifyingDirectionSelector(T base = 0) : current_(base), notify_(NULL) {} NotifyingDirectionSelector(NotifyingDirectionSelector const & rhs) : current_(rhs.current_), notify_(NULL) {}