From 2129af37ff96ea3c99db78fc16dc08562354a97c Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 12 May 2026 08:59:14 +0900 Subject: [PATCH] fix --- pmake.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pmake.js b/pmake.js index 664d78c..3cd16d7 100644 --- a/pmake.js +++ b/pmake.js @@ -2,7 +2,11 @@ function main(){ const PPR = new pmake.LibraryProject("ppr"); PPR.sources = fs.glob("src/*.c", "src/base/*.c", "src/hash/*.c", "src/misc/*.c"); PPR.includes = ["include"]; - PPR.libs = ["pthread"]; + if(pmake.system.target == "Windows"){ + PPR.libraries = ["ws2_32"]; + }else{ + PPR.libraries = ["pthread"]; + } pmake.register(PPR); }