From 94aa18548289e1e22f07b48576a6fcfc4d7563d5 Mon Sep 17 00:00:00 2001 From: "Storm, Christian" Date: Wed, 15 Jan 2025 16:40:10 +0000 Subject: [PATCH] progress: Fix FreeBSD build FreeBSD hasn't defined ENODATA nor ETIME in errno.h. Hence, define them by their semantically closest error code existing in errno.h: * Define ENODATA as ENOATTR (as in include/compat.h) * Define ETIME as ETIMEDOUT Note that other BSDs like NetBSD have them defined, so this is for FreeBSD exclusively. Signed-off-by: Christian Storm --- ipc/progress_ipc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipc/progress_ipc.c b/ipc/progress_ipc.c index c6a4af46..d3689271 100644 --- a/ipc/progress_ipc.c +++ b/ipc/progress_ipc.c @@ -16,6 +16,10 @@ #include #include #include +#if defined(__FreeBSD__) +#define ENODATA ENOATTR +#define ETIME ETIMEDOUT +#endif #ifdef CONFIG_SOCKET_PROGRESS_PATH char *SOCKET_PROGRESS_PATH = (char*)CONFIG_SOCKET_PROGRESS_PATH;