From 30a60acc14696551ccdb61d4006defcb5eea8cc6 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 20 Apr 2025 16:58:30 -0600 Subject: libhw_generic: Switch io.h and net.h to use result.h/error.h --- libhw_cr/host_util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libhw_cr/host_util.h') diff --git a/libhw_cr/host_util.h b/libhw_cr/host_util.h index 4adb94e..7e559ef 100644 --- a/libhw_cr/host_util.h +++ b/libhw_cr/host_util.h @@ -11,6 +11,8 @@ #include /* for struct timeval */ #include /* for struct timespec */ +#include /* for _errnum, error */ + int host_sigrt_alloc(void); typedef struct timeval host_us_time_t; @@ -21,4 +23,8 @@ host_ns_time_t ns_to_host_ns_time(uint64_t time_ns); uint64_t ns_from_host_us_time(host_us_time_t host_time); uint64_t ns_from_host_ns_time(host_ns_time_t host_time); +#define host_errno_t int +_errnum errno_host2lm(host_errno_t host); +error errno2lm(host_errno_t host); + #endif /* _LIBHW_CR_HOST_UTIL_H_ */ -- cgit v1.2.3-2-g168b