On Fri, Mar 04, 2022 at 10:13:28AM -0500, Kurt Mosiejczuk wrote: > On Fri, Mar 04, 2022 at 10:56:08AM +0000, Stuart Henderson wrote:
> > Should be all ports-gcc rather than just sparc64. > I thought that might be the case, but couldn't come up with what to use. > > Maybe use !defined(__clang__) ? > Like that. :) > I'll use that instead. Here's a version using that instead. ok? --Kurt Index: patches/patch-snappy-stubs-internal_h =================================================================== RCS file: patches/patch-snappy-stubs-internal_h diff -N patches/patch-snappy-stubs-internal_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-snappy-stubs-internal_h 4 Mar 2022 17:00:48 -0000 @@ -0,0 +1,14 @@ +Don't set this for gcc, it keeps snappy from building + +Index: snappy-stubs-internal.h +--- snappy-stubs-internal.h.orig ++++ snappy-stubs-internal.h +@@ -99,7 +99,7 @@ + #endif + + // Inlining hints. +-#ifdef HAVE_ATTRIBUTE_ALWAYS_INLINE ++#if defined(HAVE_ATTRIBUTE_ALWAYS_INLINE) && !defined(__clang__) + #define SNAPPY_ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline)) + #else + #define SNAPPY_ATTRIBUTE_ALWAYS_INLINE
