diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-19 12:53:51 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-19 12:53:51 -0600 |
commit | 59e1fc370371c8da876d6c2ce68794bb7f89e525 (patch) | |
tree | 8037e1493bfebe72cb6023f5eccb62cff0c63349 /lib9p/core_tables.c | |
parent | 0cf05b66f94bfe02ecca37a4cbafba25b27c32ae (diff) | |
parent | 7f34046f5b27617b70c1d55f479c2a1abb8b8d8a (diff) |
Merge branch 'lukeshu/9p-tidy'
Diffstat (limited to 'lib9p/core_tables.c')
-rw-r--r-- | lib9p/core_tables.c | 2 |
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 |