Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code fix for src/rawnet/rawnetarch_unix.c warning #108

Open
webspacecreations opened this issue Oct 11, 2020 · 0 comments
Open

Code fix for src/rawnet/rawnetarch_unix.c warning #108

webspacecreations opened this issue Oct 11, 2020 · 0 comments

Comments

@webspacecreations
Copy link

Within next-version branch (and likely main/v015), compiler generates a warning for referenced file that function close has an implicit definition. This is related to opening / closing of sockets and probably does not operate as expected.

The solution is to add the following lines of code within the #if defined(linux) block around line 68 (I added at the end after inclusion of net/if.h:

#include <unistd.h> //close
#include <arpa/inet.h> //close

rawnet now builds without issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant