Diff

util-src/lsignal.c @ 2770:716260e3b017

util.signal: Make kill() available on Solaris; really fixes #136.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 09 Dec 2009 16:25:18 +0500
parent 1841:0dc1daa94e7f
child 2790:fa717c0be65c
line wrap: on
line diff
--- a/util-src/lsignal.c	Mon Dec 07 18:32:06 2009 +0000
+++ b/util-src/lsignal.c	Wed Dec 09 16:25:18 2009 +0500
@@ -348,7 +348,7 @@
 static const struct luaL_Reg lsignal_lib[] = {
   {"signal", l_signal},
   {"raise", l_raise},
-#ifdef _POSIX_SOURCE
+#if defined _POSIX_SOURCE || (defined(sun) || defined(__sun))
   {"kill", l_kill},
 #endif
   {NULL, NULL}