From f47022cd6282fc563e84c5c52e5b6e18266d4d93 Mon Sep 17 00:00:00 2001 From: MagicPrince666 <846863428@qq.com> Date: Fri, 20 Dec 2024 10:57:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3Mac=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E6=B6=88=E9=99=A4riscv=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/hplatform.h | 2 ++ event/hloop.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/base/hplatform.h b/base/hplatform.h index 442ba7bf7..1f97d0790 100644 --- a/base/hplatform.h +++ b/base/hplatform.h @@ -60,6 +60,8 @@ #define ARCH_MIPS64 #elif defined(__mips__) #define ARCH_MIPS +#elif defined(__riscv) + #define ARCH_RISCV #else #warning "Untested hardware architecture!" #endif diff --git a/event/hloop.c b/event/hloop.c index fdb5035fc..ccf27e3a9 100644 --- a/event/hloop.c +++ b/event/hloop.c @@ -10,6 +10,10 @@ #include "hsocket.h" #include "hthread.h" +#if defined(__APPLE__) +#undef HAVE_EVENTFD +#endif + #if defined(OS_UNIX) && HAVE_EVENTFD #include "sys/eventfd.h" #endif From 67386345b5e4e5f86d1abbc063b0e902ee73c851 Mon Sep 17 00:00:00 2001 From: MagicPrince666 <846863428@qq.com> Date: Fri, 3 Jan 2025 18:53:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9C=BA=E5=9E=8B?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- event/hloop.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/event/hloop.c b/event/hloop.c index ccf27e3a9..fdb5035fc 100644 --- a/event/hloop.c +++ b/event/hloop.c @@ -10,10 +10,6 @@ #include "hsocket.h" #include "hthread.h" -#if defined(__APPLE__) -#undef HAVE_EVENTFD -#endif - #if defined(OS_UNIX) && HAVE_EVENTFD #include "sys/eventfd.h" #endif