johnscillieri / psutil-nim

Port of python psutil to nim
MIT License
62 stars 21 forks source link

Wrong import of sys/socket.h in windows #14

Open letil opened 2 years ago

letil commented 2 years ago

The lib is importing a linux library in windows, so it gives a C-level error:

C:\Users\Administrator\nimcache\test_r\@m..@s..@s..@s..@sUsers@sAdministrator@s.
nimble@spkgs@spsutil-0.6.0@spsutil@spsutil_windows.nim.c:10:10: fatal error: sys
/socket.h: No such file or directory
   10 | #include <sys/socket.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.