aboutsummaryrefslogtreecommitdiff
path: root/c-api
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2016-01-22 14:33:52 +0100
committerPhilipp Janda <siffiejoe@gmx.net>2016-01-22 14:33:52 +0100
commitabf4ea9645ce3ff0c390a57ab3e3e4f82d9a4035 (patch)
treed8b034ac7ed6970c7e3c81d60b6604d8e2386cb9 /c-api
parentce386e11eddfc6a98278d5ba302de717635b2f94 (diff)
downloadlua-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.c3
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