From c8b62bcbb5e18b3ca643acedee7fda0c45460b62 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 4 Jun 2025 21:48:59 -0600 Subject: host: Avoid the "error" sym --- libhw_cr/host_util.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libhw_cr/host_util.c') diff --git a/libhw_cr/host_util.c b/libhw_cr/host_util.c index 8cacd57..d0f01d7 100644 --- a/libhw_cr/host_util.c +++ b/libhw_cr/host_util.c @@ -4,9 +4,12 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include /* for error(3gnu) */ #include /* for SIGRTMIN, SIGRTMAX */ +#define error __error +#include +#undef error + #include /* for {X}S_PER_S */ #include "host_util.h" @@ -18,7 +21,7 @@ int host_sigrt_alloc(void) { next = SIGRTMIN; int ret = next++; if (ret > SIGRTMAX) - error(1, 0, "SIGRTMAX exceeded"); + __error(1, 0, "SIGRTMAX exceeded"); return ret; } -- cgit v1.2.3-2-g168b