From abf4ea9645ce3ff0c390a57ab3e3e4f82d9a4035 Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Fri, 22 Jan 2016 14:33:52 +0100 Subject: OSX is a Unix. --- c-api/compat-5.3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { #if !defined(l_inspectstat) && \ (defined(unix) || defined(__unix) || defined(__unix__) || \ - defined(__TOS_AIX__) || defined(_SYSTYPE_BSD)) + defined(__TOS_AIX__) || defined(_SYSTYPE_BSD) || \ + (defined(__APPLE__) && defined(__MACH__))) /* some form of unix; check feature macros in unistd.h for details */ # include /* check posix version; the relevant include files and macros probably -- cgit v1.2.3-55-g6feb