mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix compilation on Max OS X with lua 5.1
This commit is contained in:
parent
0973d789fa
commit
8d5aa69117
|
@ -319,7 +319,7 @@ inline int luaL_fileresult(lua_State *L, int stat, const char *fname) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
#if defined(__GLIBC__) || defined(_POSIX_VERSION)
|
#if defined(__GLIBC__) || defined(_POSIX_VERSION) || defined(__APPLE__)
|
||||||
strerror_r(en, buf, 1024);
|
strerror_r(en, buf, 1024);
|
||||||
#else
|
#else
|
||||||
strerror_s(buf, 1024, en);
|
strerror_s(buf, 1024, en);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user