BatchDrake / suscan

Channel scanner based on sigutils library
GNU General Public License v3.0
125 stars 29 forks source link

Include sys/socket.h for various socket functions #60

Closed jeffpc closed 2 years ago

jeffpc commented 2 years ago

This fixes the build on FreeBSD 13.

jeffpc commented 2 years ago

The automatic build you set up apparently failed on windows with a "Error: " ... I have no idea what the issue is :)

BatchDrake commented 2 years ago

The issue is that Windows does not have <sys/socket.h>. Fortunately, this is as simple as replacing #include <sys/socket.h> by #include <util/compat-socket.h>. If you update the commit I'll do the merge right away.

jeffpc commented 2 years ago

Ok, made the fix. I also moved the string.h include into a separate commit since it isn't about socket functions ;)