From 3e907922dfd3b27542bc503961b017f0b2b7670a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 6 Sep 2023 22:55:26 +0300 Subject: [PATCH] common: interface: fix dlsym cast, fix headers for Linux --- common/interface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/interface.cpp b/common/interface.cpp index 0fe0991..a0d5888 100644 --- a/common/interface.cpp +++ b/common/interface.cpp @@ -7,9 +7,11 @@ #include #include +#include #include "interface.h" #ifndef _WIN32 // LINUX +#include #include #endif @@ -142,7 +144,7 @@ CreateInterfaceFn Sys_GetFactory( HINTERFACEMODULE hModule ) if(!hModule) return NULL; - return dlsym( (void *)hModule, CREATEINTERFACE_PROCNAME ); + return (CreateInterfaceFn)dlsym( (void *)hModule, CREATEINTERFACE_PROCNAME ); } #endif