commit 0ddee64fc35105f357dc8c75c24364b52971f7f3
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2026-05-28T23:11:19Z |
| subject | Fix windows build |
commit 0ddee64fc35105f357dc8c75c24364b52971f7f3
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2026-05-28T23:11:19Z
Fix windows build
---
src/stream_listener.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/stream_listener.c b/src/stream_listener.c
index f6d9b05..dac319a 100644
--- a/src/stream_listener.c
+++ b/src/stream_listener.c
@@ -80,6 +80,13 @@ static int bind_tcp_stream_listener(struct stream_route_ctx *ctx)
return 0;
}
+#ifdef _WIN32
+static int bind_unix_stream_listener(struct stream_route_ctx *ctx)
+{
+ (void)ctx;
+ return -EAFNOSUPPORT;
+}
+#else
static int bind_unix_stream_listener(struct stream_route_ctx *ctx)
{
const struct endpoint *ep = &ctx->route->listen;
@@ -159,3 +166,4 @@ int bind_stream_listener(struct stream_route_ctx *ctx)
return -ENOTSUP;
}
}
+#endif