Skip to content

Commit

Permalink
AI chat: Linux build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Nov 22, 2024
1 parent ada8abe commit 3ab8989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/PlayerbotLLMInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ inline std::string RecvWithTimeout(int sock, int timeout_seconds, int& bytesRead
#ifdef _WIN32
sLog.outError("BotLLM: recv error:" + WSAGetLastError());
#else
sLog.outError("BotLLM: recv error:" + sterror(errno));
sLog.outError("BotLLM: recv error:" + strerror(errno));
#endif
break;
}
Expand Down

1 comment on commit 3ab8989

@anlopo
Copy link

@anlopo anlopo commented on 3ab8989 Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mangos-tbc/src/modules/PlayerBots/playerbot/PlayerbotLLMInterface.cpp:109:53: error: invalid operands of types 'const char [20]' and 'char*' to binary 'operator+'

This works:
sLog.outError("BotLLM: recv error: %s", strerror(errno));

Please sign in to comment.