Software /
code /
prosody
Diff
util-src/signal.c @ 3282:8ef3beed0779
util.signal: Make kill() available on OS X (thanks darkrain).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 20 Jun 2010 03:36:46 +0500 |
parent | 3274:366ac5e47096 |
child | 3283:4a1a87254852 |
line wrap: on
line diff
--- a/util-src/signal.c Sat Jun 19 23:39:29 2010 +0500 +++ b/util-src/signal.c Sun Jun 20 03:36:46 2010 +0500 @@ -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 @@ return 1; } -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) /* define some posix only functions */ @@ -377,7 +377,7 @@ 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}