diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2016-01-22 14:33:52 +0100 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2016-01-22 14:33:52 +0100 |
commit | abf4ea9645ce3ff0c390a57ab3e3e4f82d9a4035 (patch) | |
tree | d8b034ac7ed6970c7e3c81d60b6604d8e2386cb9 /c-api | |
parent | ce386e11eddfc6a98278d5ba302de717635b2f94 (diff) | |
download | lua-compat-5.3-abf4ea9645ce3ff0c390a57ab3e3e4f82d9a4035.tar.gz lua-compat-5.3-abf4ea9645ce3ff0c390a57ab3e3e4f82d9a4035.tar.bz2 lua-compat-5.3-abf4ea9645ce3ff0c390a57ab3e3e4f82d9a4035.zip |
OSX is a Unix.
Diffstat (limited to 'c-api')
-rw-r--r-- | c-api/compat-5.3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c-api/compat-5.3.c b/c-api/compat-5.3.c index fd41798..4395bbc 100644 --- a/c-api/compat-5.3.c +++ b/c-api/compat-5.3.c | |||
@@ -380,7 +380,8 @@ COMPAT53_API int luaL_fileresult (lua_State *L, int stat, const char *fname) { | |||
380 | 380 | ||
381 | #if !defined(l_inspectstat) && \ | 381 | #if !defined(l_inspectstat) && \ |
382 | (defined(unix) || defined(__unix) || defined(__unix__) || \ | 382 | (defined(unix) || defined(__unix) || defined(__unix__) || \ |
383 | defined(__TOS_AIX__) || defined(_SYSTYPE_BSD)) | 383 | defined(__TOS_AIX__) || defined(_SYSTYPE_BSD) || \ |
384 | (defined(__APPLE__) && defined(__MACH__))) | ||
384 | /* some form of unix; check feature macros in unistd.h for details */ | 385 | /* some form of unix; check feature macros in unistd.h for details */ |
385 | # include <unistd.h> | 386 | # include <unistd.h> |
386 | /* check posix version; the relevant include files and macros probably | 387 | /* check posix version; the relevant include files and macros probably |