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
Compiling nanomsg for Android #316
Comments
Actually, when I think of it - that patch is probably quite intrusive as it introduces Linux-specifics. The problem is that my un.h looks like this, with no definition of This patch works too, which may be a better candidate: diff --git a/src/transports/ipc/ipc.c b/src/transports/ipc/ipc.c
index 26ffb07..552ba13 100644
--- a/src/transports/ipc/ipc.c
+++ b/src/transports/ipc/ipc.c
@@ -36,6 +36,7 @@
#if defined NN_HAVE_WINDOWS
#include "../../utils/win.h"
#else
+#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#endif |
Can you confirm that the patch is submitted under MIT license? |
haha of course! pick any license you like :) |
Applied to master. Thanks! |
How did you compile he mk file ? |
@mardistal that depends on your Android setup, really. We're building Android from scratch (aka aosp) which builds all Android.mk files by itself. If I remember correctly, it's the same with NDK apps: |
We've put together an Android.mk file which seems to build nanomsg for Android without any problems with one exception:
which was fixed with this patch:
It's probably just bionic that's suffering from this, but since it's a relatively unintrusive patch, I though I might suggest it upstream.
The text was updated successfully, but these errors were encountered: