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

Portability, possible? #3

Open
liveforeverx opened this issue Jul 1, 2015 · 0 comments
Open

Portability, possible? #3

liveforeverx opened this issue Jul 1, 2015 · 0 comments

Comments

@liveforeverx
Copy link

@RoadRunnr Seems, like it is not portable for Darwin, FreeBSD, (Solaris) and is really Linux only:

c_src/gen_socket_nif.c:452:5: warning: implicit declaration of function 'setns' is invalid in C99 [-Wimplicit-function-declaration]
    setns(nsfd, CLONE_NEWNET);
    ^
c_src/gen_socket_nif.c:452:17: error: use of undeclared identifier 'CLONE_NEWNET'
    setns(nsfd, CLONE_NEWNET);
                ^
c_src/gen_socket_nif.c:455:21: error: use of undeclared identifier 'CLONE_NEWNET'
    setns(old_nsfd, CLONE_NEWNET);
                    ^
c_src/gen_socket_nif.c:620:14: error: use of undeclared identifier 'MSG_NOSIGNAL'
    flags |= MSG_NOSIGNAL;
             ^
c_src/gen_socket_nif.c:660:14: error: use of undeclared identifier 'MSG_NOSIGNAL'
    flags |= MSG_NOSIGNAL;
             ^
1 warning and 4 errors generated.
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