Make it easy to build Cemu on BSD (#1632)

This commit is contained in:
Kevin Reinholz 2025-07-22 23:59:09 -07:00 committed by GitHub
parent 955ce9b973
commit 4efa40c51c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 167 additions and 57 deletions

View file

@ -36,7 +36,7 @@
#if BOOST_OS_LINUX
#define _putenv(__s) putenv((char*)(__s))
#include <sys/sysinfo.h>
#elif BOOST_OS_MACOS
#elif BOOST_OS_MACOS || BOOST_OS_BSD
#define _putenv(__s) putenv((char*)(__s))
#include <sys/types.h>
#include <sys/sysctl.h>
@ -247,7 +247,7 @@ int main(int argc, char* argv[])
int main(int argc, char *argv[])
{
#if BOOST_OS_LINUX
#if BOOST_OS_LINUX || BOOST_OS_BSD
XInitThreads();
#endif
if (!LaunchSettings::HandleCommandline(argc, argv))