aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-20 03:36:46 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-20 03:36:46 +0500
commit8840b66c84680278c1a129470c465a4c44c0ac04 (patch)
tree36bfc009b92ede1fcf506ac5f31aabdec4a24432
parent162c4760b69140c91f897b4893a84722b817eb47 (diff)
downloadprosody-8840b66c84680278c1a129470c465a4c44c0ac04.tar.gz
prosody-8840b66c84680278c1a129470c465a4c44c0ac04.zip
util.signal: Make kill() available on OS X (thanks darkrain).
-rw-r--r--util-src/signal.c6
1 files 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 <signal.h>
#include <stdlib.h>
-#ifdef __unix__
+#if defined(__unix__) || defined(__APPLE__)
#include <sys/param.h>
#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}