From 8840b66c84680278c1a129470c465a4c44c0ac04 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 20 Jun 2010 03:36:46 +0500 Subject: util.signal: Make kill() available on OS X (thanks darkrain). --- util-src/signal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util-src/signal.c b/util-src/signal.c index e6853f62..fbcfabd9 100644 --- a/util-src/signal.c +++ b/util-src/signal.c @@ -29,7 +29,7 @@ #include #include -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) #include #endif @@ -330,7 +330,7 @@ static int l_raise(lua_State *L) return 1; } -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) /* define some posix only functions */ @@ -377,7 +377,7 @@ static int l_kill(lua_State *L) static const struct luaL_Reg lsignal_lib[] = { {"signal", l_signal}, {"raise", l_raise}, -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) {"kill", l_kill}, #endif {NULL, NULL} -- cgit v1.2.3