From 4d4bd53697f3f676bbd21a8b40245ba813e87aae Mon Sep 17 00:00:00 2001 From: Himanshu Pandey <24816726+hp77-creator@users.noreply.github.com> Date: Sat, 24 Aug 2024 21:47:23 +0530 Subject: [PATCH] Fix guard --- runtime/syscall-server/syscall_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syscall-server/syscall_context.cpp b/runtime/syscall-server/syscall_context.cpp index 13e5ef84..e06c762b 100644 --- a/runtime/syscall-server/syscall_context.cpp +++ b/runtime/syscall-server/syscall_context.cpp @@ -53,7 +53,7 @@ .imm = IMM }) #endif -#if linux && !BPFTIME_BUILD_WITH_LIBBPF +#if __linux__ && !BPFTIME_BUILD_WITH_LIBBPF #define offsetofend(type, member) (offsetof(type, member) + sizeof(((type *)0)->member)) static void *libc_handle = dlopen(LIBC_SO, RTLD_LAZY); static auto libc_syscall =