[PATCH] Fix building for Android

Jef Driesen jef at libdivecomputer.org
Fri Mar 28 02:20:05 PDT 2014


On 2014-03-27 20:44, Anton Lundin wrote:
> This makes libdivecomputer build via Android NDK. Its currently 
> unusable
> due to the fact that Android usually doesn't provide any kernel serial
> drivers.

I'll apply your patch, although with a slight modification. I prefer the 
tcdrain #ifdef right where the function is being called, rather than 
redirecting one function to another. I find that confusing when 
debugging.

But the reason why I'm replying to you is actually the TIOCGSERIAL part. 
Can you tell me what's going wrong there? Is TIOCGSERIAL defined on 
Android, but not supported somehow? Maybe the serial_struct struct is 
missing in bionic?

I have just pushed some changes related to the low latency stuff. Those 
will probably need similar changes. So that's why I'm asking.

Jef


More information about the devel mailing list