Skip to content

Commit

Permalink
android: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
selsta committed Aug 10, 2019
1 parent 55b4425 commit 049cef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions monero-wallet-gui.pro
Expand Up @@ -337,13 +337,13 @@ linux {
-llmdb \
-lsodium \
-lhidapi-libusb \
-lcrypto $$TREZOR_LINKER \
-lX11
-lcrypto $$TREZOR_LINKER

if(!android) {
LIBS+= \
-Wl,-Bdynamic \
-lGL
-lGL \
-lX11
}
# currently monero has an issue with "static" build and linunwind-dev,
# so we link libunwind-dev only for non-Ubuntu distros
Expand Down
4 changes: 2 additions & 2 deletions oshelper.cpp
Expand Up @@ -37,7 +37,7 @@
#ifdef Q_OS_WIN32
#include <windows.h>
#endif
#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
#include <X11/XKBlib.h>
#undef KeyPress
#undef KeyRelease
Expand Down Expand Up @@ -78,7 +78,7 @@ bool OSHelper::isCapsLock() const
// platform dependent method of determining if CAPS LOCK is on
#if defined(Q_OS_WIN32) // MS Windows version
return GetKeyState(VK_CAPITAL) == 1;
#elif defined(Q_OS_LINUX) // X11 version
#elif defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) // X11 version
Display * d = XOpenDisplay((char*)0);
bool caps_state = false;
if (d) {
Expand Down

0 comments on commit 049cef9

Please sign in to comment.