tezc / sc

Common libraries and data structures for C.
BSD 3-Clause "New" or "Revised" License
2.26k stars 245 forks source link

[error]“afunix.h”: No such file or directory sc_socket_test #72

Closed ShiverZm closed 3 years ago

ShiverZm commented 3 years ago

image 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1083 无法打开包括文件: “afunix.h”: No such file or directory sc_socket_test F:\workspace\project\github\cpp\sc\socket\sc_sock.c 43
错误 C1083 无法打开包括文件: “afunix.h”: No such file or directory sc_socket_test F:\workspace\project\github\cpp\sc\socket\sc_sock.c 43

tezc commented 3 years ago

Thanks for the report @ShiverZm

AF_UNIX support has been added to Windows three years ago, Windows 10 April 2018 update has it.

If you are using an older Windows version, probably it doesn't have it. I have no intention to support older Windows versions.

1 - If you can, you can try to update Windows to that April 2018 update. 2- Or you can disable AF_UNIX sections in sc_sock.c with "#ifdef _WIN32" s.

tezc commented 3 years ago

Closing for now as I have no intention to support older Windows versions.

Feel free to post if you have any suggestions.