Discussion:
[Live-devel] GroupsockHelper for Android
Chase, Brian P [US] (MS)
2018-10-10 17:52:00 UTC
Permalink
Good day,

In the GroupsockHelper.cpp file there are couple of preprocessor conditional blocks that populate a struct differently depending on whether the platform is Android or anything else. With the latest version of Android's Native Development Kit (NDK), version 17, the headers included define that struct the same way as the other platforms, thus breaking the code in those preprocessor blocks.

Therefore, I propose to that the "#ifdef __ANDROID__" lines be replace with "#if ANDROID_NDK_OLD" and such as the following block added amidst the other '#include's:

#ifdef __ANDROID_NDK__
#include <android/ndk-version.h>
#define ANDROID_OLD_NDK __NDK_MAJOR__ < 17
#endif

I hope these changes will be useful. I have attached a patch file and resulting source file for clarity. Have a blessed day.

Regards,
-Brian P. Chase
Ross Finlayson
2018-10-10 18:21:02 UTC
Permalink
Thanks for the note. I have just installed a new version (2018.10.10) of the code that includes this patch.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

Loading...