Diff

util-src/signal.c @ 2343:4b05fd561cbd

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 2317:aa58136622bc
child 2405:88f73ee1c46f
line wrap: on
line diff
--- a/util-src/signal.c	Tue Dec 08 01:24:16 2009 +0000
+++ b/util-src/signal.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}