Changeset

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
parents 3281:fd6ab269ecc2
children 3283:4a1a87254852
files util-src/signal.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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}