Details
-
Technical task
-
Resolution: Done
-
P3: Somewhat important
-
Necessitas Qt SDK v 1.0.0 (Windows installer), QtCreator v 2.8.0
Description
It is the first experimental patch to start integration of support of Android for QtSerialPort. Therefore for build of library it is necessary to exclude examples and tests.
In this patch should be corrected the tcdrain() function. The main problem is that Android supports this function, beginning from version 4.2 and above:
But we can't define the Android's API version by means of Q_OS_ANDROID macro yet. Therefore we are stimulated to implement the tcdrain() function manually, having simply copied its implementation from the source codes of
Bionic libc.