mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Make strerror_r portable.
This uses the same code that broker already uses to determine if we use the XSI or gnu version of strerror_r. Patch by Thomas Petersen.
This commit is contained in:
parent
2a873f5aed
commit
fc33bf2014
13 changed files with 63 additions and 18 deletions
|
@ -516,4 +516,10 @@ struct CompareString
|
|||
*/
|
||||
std::string canonify_name(const std::string& name);
|
||||
|
||||
/**
|
||||
* Reentrant version of strerror(). Takes care of the difference between the
|
||||
* XSI-compliant and the GNU-specific version of strerror_r().
|
||||
*/
|
||||
void bro_strerror_r(int bro_errno, char* buf, size_t buflen);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue