Skip to content

LLM inference in C/C++

C++ ggml

server : fix wake_fd warning on Windows (#29479)

Adrien Gallouëtfcb3074f2bc0
diff --git a/tools/server/server-common.h b/tools/server/server-common.h
index 9894f5f06f..e00408cd4f 100644
--- a/tools/server/server-common.h
+++ b/tools/server/server-common.h
@@ -643,7 +643,9 @@ struct server_subproc {
void wait(const std::vector<server_subproc *> & procs, std::vector<bool> & ready, int64_t timeout_ms);
private:
+#ifndef _WIN32
intptr_t wake_fd[2] = { -1, -1 }; // POSIX self-pipe
+#endif
};
private: