FreeBSD: Add workaround for libsteam

Steam isn't supported on FreeBSD so add a workaround.

Signed-off-by: Emmanuel Vadot <manu@freebsd.org>
This commit is contained in:
Emmanuel Vadot 2020-01-10 22:38:33 +01:00 committed by Ethan Lee
parent 699d8c4590
commit 90decede25
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,7 @@
#define NETWORK_LIBRARY "steam_api.dll"
#elif defined(__APPLE__)
#define NETWORK_LIBRARY "libsteam_api.dylib"
#elif defined(__linux__)
#elif defined(__linux__) || defined(__FreeBSD__)
#define NETWORK_LIBRARY "libsteam_api.so"
#else
#error NETWORK_LIBRARY: Unrecognized platform!
@ -97,6 +97,9 @@ static void ClearPointers()
int NETWORK_init()
{
#if defined(__FreeBSD__)
return 1;
#endif
intptr_t steamClient;
int32_t steamUser, steamPipe;