diff --git a/sol/compatibility/5.x.x.inl b/sol/compatibility/5.x.x.inl index 52d8c758..cdd541e8 100644 --- a/sol/compatibility/5.x.x.inl +++ b/sol/compatibility/5.x.x.inl @@ -319,7 +319,7 @@ inline int luaL_fileresult(lua_State *L, int stat, const char *fname) { } else { char buf[1024]; -#if defined(__GLIBC__) || defined(_POSIX_VERSION) +#if defined(__GLIBC__) || defined(_POSIX_VERSION) || defined(__APPLE__) strerror_r(en, buf, 1024); #else strerror_s(buf, 1024, en);