<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt;color:#000000;">Today I tried to compile a recent version (0.6.0-rc1) of the iodine client for Android 2.1 using the Android NDK.<br>I copied all iodine <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">./src</span> files to <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">./jni</span> and created this <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">./jni/Android.mk</span> file:<br><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">LOCAL_PATH:= $(call my-dir)</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span
 style="font-family: Courier New,courier,monaco,monospace,sans-serif;">include $(CLEAR_VARS)</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">LOCAL_MODULE    := iodine</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">LOCAL_SRC_FILES
 := tun.c dns.c read.c encoding.c login.c base32.c base64.c base64u.c 
base128.c md5.c common.c iodine.c client.c util.c</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">LOCAL_CFLAGS    := -c -DLINUX -Werror</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">LOCAL_LDLIBS    := -lz</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">include $(BUILD_SHARED_LIBRARY)</span><br><br>A <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">ndk-build</span> seems to work (the first file <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">tun.c</span> was compiled
 successfully), but <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">dns.c</span> cannot find the structure <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">HEADER</span>.<br>I have seen it is defined in <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">windows.h</span> of the package, but it is nowhere in the Android NDK.<br>So my questions is how can I solve this?<br><br>I already have a working <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">tun.ko</span> kernel module, so I like to have this working  too.<br>If it does matter: I am using a Sony Ericsson Xperia X10 mini.<br><br></div></body></html>