Fix compilation issues

1) when building for android
2) when building without wayland
This commit is contained in:
Linus Dierheimer
2022-07-27 19:28:55 +02:00
parent 159a114bb7
commit 9a0aa2ac72
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -160,6 +160,8 @@ void ffdsConnectWayland(const FFinstance* instance, FFDisplayServerResult* resul
#ifdef FF_HAVE_WAYLAND
if(detectWayland(instance, result))
return;
#else
FF_UNUSED(instance);
#endif
const char* xdgSessionType = getenv("XDG_SESSION_TYPE");
+3 -1
View File
@@ -7,7 +7,9 @@
#include <stdlib.h>
#include <pthread.h>
#if !defined(__ANDROID__)
#if __ANDROID__
#include "common/settings.h"
#else
static bool parseFile(const char* fileName, FFOSResult* result)
{