diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-04 21:48:59 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-06 23:01:30 -0600 |
commit | c8b62bcbb5e18b3ca643acedee7fda0c45460b62 (patch) | |
tree | 09d87a75d4cb293643feca660e20ade88edd0963 /libhw_cr/host_util.c | |
parent | b5a29a4c57f09ed11b4591f99493fd57fdcee593 (diff) |
host: Avoid the "error" sym
Diffstat (limited to 'libhw_cr/host_util.c')
-rw-r--r-- | libhw_cr/host_util.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <error.h> /* for error(3gnu) */ #include <signal.h> /* for SIGRTMIN, SIGRTMAX */ +#define error __error +#include <error.h> +#undef error + #include <libhw/generic/alarmclock.h> /* 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; } |