summaryrefslogtreecommitdiff
path: root/lib9p/core_tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/core_tables.c')
-rw-r--r--lib9p/core_tables.c2
1 files changed, 2 insertions, 0 deletions
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