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); }