From 69bed969c7433bf59616957a1916295506053663 Mon Sep 17 00:00:00 2001 From: nia Date: Thu, 22 May 2025 11:54:57 +0200 Subject: [PATCH] Fix compilation on NetBSD/sparc64 Signed-off-by: Nia Alarie --- src/greenlet/slp_platformselect.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/greenlet/slp_platformselect.h b/src/greenlet/slp_platformselect.h index 225c67ba..d9b7d0a7 100644 --- a/src/greenlet/slp_platformselect.h +++ b/src/greenlet/slp_platformselect.h @@ -31,6 +31,8 @@ extern "C" { #include "platform/switch_ppc_unix.h" /* gcc on NetBSD/powerpc */ #elif defined(__GNUC__) && defined(sparc) # include "platform/switch_sparc_sun_gcc.h" /* SunOS sparc with gcc */ +#elif defined(__GNUC__) && defined(__sparc__) +# include "platform/switch_sparc_sun_gcc.h" /* NetBSD sparc with gcc */ #elif defined(__SUNPRO_C) && defined(sparc) && defined(sun) # include "platform/switch_sparc_sun_gcc.h" /* SunStudio on amd64 */ #elif defined(__SUNPRO_C) && defined(__amd64__) && defined(sun)