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

Build in android #15

Open
GoogleCodeExporter opened this issue Jul 18, 2015 · 1 comment
Open

Build in android #15

GoogleCodeExporter opened this issue Jul 18, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

android ndk have no <ifaddrs.h>

stupid working solution:
get ifaddrs.h ifaddrs.c from here:
https://github.com/kmackay/android-ifaddrs

and

--- a/netinet/sctp_os_userspace.h
+++ b/netinet/sctp_os_userspace.h
@@ -496,8 +496,12 @@ struct sx {int dummy;};
 #include <sys/types.h>
 #if !defined(__Userspace_os_Windows)
 #if defined(INET) || defined(INET6)
+#if defined(__ANDROID__)
+#include "ifaddrs.h"
+#else
 #include <ifaddrs.h>
 #endif
+#endif

Original issue reported on code.google.com by [email protected] on 4 May 2015 at 7:08

@GoogleCodeExporter
Copy link
Author

+#if defined(__ANDROID__)
+#include "ifaddrs.h"
+#else
 #include <ifaddrs.h>
 #endif
I think adding -Ipath/to/headers/ when compiling is a better way and then you 
don't need to modify the current file.

Original comment by [email protected] on 14 Jun 2015 at 3:51

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

No branches or pull requests

1 participant