mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 14:56:16 +00:00
19 lines
544 B
Diff
19 lines
544 B
Diff
--- a/src/serialport/qserialport_unix.cpp
|
|
+++ b/src/serialport/qserialport_unix.cpp
|
|
@@ -67,13 +67,13 @@
|
|
|
|
#ifdef Q_OS_LINUX
|
|
|
|
-# ifdef Q_OS_ANDROID
|
|
+# ifdef __ANDROID__
|
|
# include <android/api-level.h>
|
|
# else
|
|
# define __ANDROID_API__ 16
|
|
# endif
|
|
|
|
-# if !defined(Q_OS_ANDROID) || (!defined(Q_PROCESSOR_X86) && __ANDROID_API__ < 16)
|
|
+# if !defined(__ANDROID__) || (!defined(Q_PROCESSOR_X86) && __ANDROID_API__ < 16)
|
|
struct termios2 {
|
|
tcflag_t c_iflag; /* input mode flags */
|
|
tcflag_t c_oflag; /* output mode flags */
|