Skip to content

Commit

Permalink
Merge pull request #104 from csavorgn/freeBSD
Browse files Browse the repository at this point in the history
Update platform.cpp to fix compilation on FreeBSD
  • Loading branch information
ihedvall committed Aug 28, 2024
2 parents 2b32fea + 31b679c commit b14d244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdflib/src/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int strnicmp(const char *__s1, const char *__s2, size_t __n) {
void strerror(int __errnum, char *__buf, size_t __buflen) {
#if (_WIN32)
strerror_s(__buf, __buflen, __errnum);
#elif (__APPLE__)
#elif (__APPLE__ || __FreeBSD__)
int err = strerror_r(__errnum, __buf, __buflen);
if (err == 0)
{
Expand Down

0 comments on commit b14d244

Please sign in to comment.