1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-09 20:13:56 +00:00

Updated for OpenBSD

This commit is contained in:
Bryan Roe
2021-08-30 12:06:36 -07:00
parent b496e192d9
commit 67a949207f
5 changed files with 43 additions and 1 deletions

View File

@@ -5770,7 +5770,11 @@ int MeshAgent_Start(MeshAgentHostContainer *agentHost, int paramLen, char **para
#elif defined(NACL)
#else
#ifdef _FREEBSD
x = readlink("/proc/curproc/file", exePath, 1024);
#ifdef _OPENBSD
x = sprintf_s(exePath, 1024, "%s", __agentExecPath);
#else
x = readlink("/proc/curproc/file", exePath, 1024);
#endif
#else
x = readlink("/proc/self/exe", exePath, 1024);
#endif