From 0a0b12bee1ae9e2e74d5a5391f999290efaf1ad7 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Fri, 22 Nov 2024 05:56:53 -0800 Subject: [PATCH] kvs: use EINVAL instead of EBADE if undefined Problem: KVS module does not compile on macos because EBADE is not a valid signal name there. Use EINVAL if EBADE is undefined. --- src/modules/kvs/cache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/kvs/cache.c b/src/modules/kvs/cache.c index 2b6e82d68114..b6167893bf3f 100644 --- a/src/modules/kvs/cache.c +++ b/src/modules/kvs/cache.c @@ -25,6 +25,10 @@ #include #include +#ifndef EBADE +#define EBADE EINVAL +#endif + #include "src/common/libczmqcontainers/czmq_containers.h" #include "src/common/libccan/ccan/list/list.h" #include "src/common/libkvs/treeobj.h"