From be7ddfc4cd020ce47dfa35783307b880e952c050 Mon Sep 17 00:00:00 2001 From: cdevelop <cdevelop@qq.com> Date: 星期一, 13 十一月 2023 16:15:05 +0800 Subject: [PATCH] runtime windows build (#1082) --- runtime/websocket/bin/funasr-wss-server-2pass.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/runtime/websocket/bin/funasr-wss-server-2pass.cpp b/runtime/websocket/bin/funasr-wss-server-2pass.cpp index 83bcaeb..2ad20a4 100644 --- a/runtime/websocket/bin/funasr-wss-server-2pass.cpp +++ b/runtime/websocket/bin/funasr-wss-server-2pass.cpp @@ -11,8 +11,13 @@ // <string>] [--punc-quant <string>] [--punc-dir <string>] // [--vad-quant <string>] [--vad-dir <string>] [--quantize // <string>] --model-dir <string> [--] [--version] [-h] -#include <unistd.h> + #include "websocket-server-2pass.h" +#ifdef _WIN32 +#include "win_func.h" +#else +#include <unistd.h> +#endif #include <fstream> #include "util.h" -- Gitblit v1.9.1