Changeset

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
parents 2342:8b20702d5b9e
children 2344:1e27e0092f19
files util-src/signal.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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}