From 7f34046f5b27617b70c1d55f479c2a1abb8b8d8a Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 19 Apr 2025 12:31:51 -0600 Subject: lib9p: Don't require that CONFIG_9P_ENABLE_9P2000 --- lib9p/core_tables.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib9p/core_tables.c') diff --git a/lib9p/core_tables.c b/lib9p/core_tables.c index a04a5f0..bc452c7 100644 --- a/lib9p/core_tables.c +++ b/lib9p/core_tables.c @@ -155,6 +155,7 @@ bool lib9p_Rmsg_marshal(struct lib9p_ctx *ctx, enum lib9p_msg_type typ, void *bo /* `struct lib9p_stat` helpers ************************************************/ +#if _LIB9P_ENABLE_stat bool lib9p_stat_validate(struct lib9p_ctx *ctx, uint32_t net_size, uint8_t *net_bytes, uint32_t *ret_net_size, size_t *ret_host_size) { ssize_t host_size = _lib9p_stat_validate(ctx, net_size, net_bytes, ret_net_size); @@ -186,3 +187,4 @@ uint32_t lib9p_stat_marshal(struct lib9p_ctx *ctx, uint32_t max_net_size, struct return 0; return ret.net_iov[0].iov_len; } +#endif -- cgit v1.2.3-2-g168b