util.pposix: Compatibility with Solaris systems (thanks Filip)
[prosody.git] / util-src / lsignal.c
index 158efcd6e1e583b5c20a9b2b10546b335a7c9acf..80799e4a782cba339019a7ccf41122892bc94c65 100644 (file)
@@ -301,7 +301,7 @@ static int l_raise(lua_State *L)
   return 1;
 }
 
-#ifdef _POSIX_SOURCE
+#if defined _POSIX_SOURCE || (defined(sun) || defined(__sun))
 
 /* define some posix only functions */