# HG changeset patch # User Waqas Hussain # Date 1276987006 -18000 # Node ID 8ef3beed0779676011d36cfdbac3ccec59af375a # Parent fd6ab269ecc28a1b5012d26f666c69b12fcc8747 util.signal: Make kill() available on OS X (thanks darkrain). diff -r fd6ab269ecc2 -r 8ef3beed0779 util-src/signal.c --- 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 #include -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) #include #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}