Comparison

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
comparison
equal deleted inserted replaced
2342:8b20702d5b9e 2343:4b05fd561cbd
346 #endif 346 #endif
347 347
348 static const struct luaL_Reg lsignal_lib[] = { 348 static const struct luaL_Reg lsignal_lib[] = {
349 {"signal", l_signal}, 349 {"signal", l_signal},
350 {"raise", l_raise}, 350 {"raise", l_raise},
351 #ifdef _POSIX_SOURCE 351 #if defined _POSIX_SOURCE || (defined(sun) || defined(__sun))
352 {"kill", l_kill}, 352 {"kill", l_kill},
353 #endif 353 #endif
354 {NULL, NULL} 354 {NULL, NULL}
355 }; 355 };
356 356