--- a/libmariadb/include/ma_global.h
+++ b/libmariadb/include/ma_global.h
@@ -21,6 +21,10 @@
#ifndef _global_h
#define _global_h
+#ifdef __ANDROID__
+typedef unsigned short ushort;
+#endif
+
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>