NDK 2.24.00.11 removed the length fields from the socket address structures as documented in the Release Notes:
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/2_24_00_11/exports/ndk_2_24_00_11/ndk_2_24_00_11_release_notes.html#Upgrade_Info
I have several products I need to simultaneously support with our code base some of which still need to use older versions of the NDK. Do any of the NDK header files define a preprocessor macro which describes the version that I could then use to conditionally compile our code? For example I want to set the sa_len field of sockaddr for older NDK versions but obviously that field is absent in the new NDK. I could define my own preprocessor macro for each NDK version used, but I would prefer not to put that burden on our build system if possible.
Any tips for supporting multiple NDK versions is much appreciated.
Thanks,
-DaveN