From 8d5aa69117a54fc06a8d394adc4f063d5db11d24 Mon Sep 17 00:00:00 2001 From: Ilia Udalov Date: Tue, 27 Jun 2017 00:06:12 +0300 Subject: [PATCH] Fix compilation on Max OS X with lua 5.1 --- sol/compatibility/5.x.x.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);