Fix apple compilation

This commit is contained in:
baldurk
2019-12-16 18:49:54 +00:00
parent d5ec212645
commit b52e3746f9
+2 -2
View File
@@ -103,7 +103,7 @@ int GetIdentPort(pid_t childPid)
if(isNewline(parseResult[i]))
i++;
const int pid = std::stoi(&result[tokenStart]);
const int pid = atoi(&result[tokenStart]);
if(pid == (int)childPid)
{
const char *netString("n*:");
@@ -124,7 +124,7 @@ int GetIdentPort(pid_t childPid)
if(isNewline(parseResult[i]))
i++;
const int port = std::stoi(&result[tokenStart]);
const int port = atoi(&result[tokenStart]);
if(port >= RenderDoc_FirstTargetControlPort && port <= RenderDoc_LastTargetControlPort)
{
return port;