Fix POSIX functionality on BSD systems
This commit is contained in:
parent
af15c88ccf
commit
a048487daf
3 changed files with 38 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2010/06/15 10:33:50 fhajny Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/06/15 12:01:10 fhajny Exp $
|
||||
#
|
||||
|
||||
DISTNAME= prosody-0.7.0
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= chat
|
||||
MASTER_SITES= http://prosody.im/downloads/source/
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: distinfo,v 1.2 2010/06/15 11:16:10 fhajny Exp $
|
||||
$NetBSD: distinfo,v 1.3 2010/06/15 12:01:10 fhajny Exp $
|
||||
|
||||
SHA1 (prosody-0.7.0.tar.gz) = 3f3a6c4f262a062a9c027cc843cd6827104fb8ba
|
||||
RMD160 (prosody-0.7.0.tar.gz) = 2e40b4f807b6120971c611f52d4df3264a82cbb9
|
||||
|
@ -6,3 +6,4 @@ Size (prosody-0.7.0.tar.gz) = 177412 bytes
|
|||
SHA1 (patch-aa) = 5bb7fb62cc367e075b4213b7cc85661fece0cf23
|
||||
SHA1 (patch-ab) = 687ee0ad43074c36c0f1a7fa7bb3cd4575fcae54
|
||||
SHA1 (patch-ac) = 3463fffe6884326a8f39f22216f9c94f35ad5cd7
|
||||
SHA1 (patch-ad) = d0fc4133bc2027c5f5b3a690bfca4c76a70f48fc
|
||||
|
|
34
prosody/patches/patch-ad
Normal file
34
prosody/patches/patch-ad
Normal file
|
@ -0,0 +1,34 @@
|
|||
$NetBSD: patch-ad,v 1.1 2010/06/15 12:01:10 fhajny Exp $
|
||||
|
||||
Fix POSIX logic for BSD systems
|
||||
--- util-src/signal.c.orig 2010-06-13 00:23:02.000000000 +0000
|
||||
+++ util-src/signal.c
|
||||
@@ -29,6 +29,10 @@
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
+#ifdef __unix__
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
+
|
||||
#include "lua.h"
|
||||
#include "lauxlib.h"
|
||||
|
||||
@@ -326,7 +330,7 @@ static int l_raise(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
-#if defined _POSIX_SOURCE || (defined(sun) || defined(__sun))
|
||||
+#ifdef __unix__
|
||||
|
||||
/* define some posix only functions */
|
||||
|
||||
@@ -373,7 +377,7 @@ static int l_kill(lua_State *L)
|
||||
static const struct luaL_Reg lsignal_lib[] = {
|
||||
{"signal", l_signal},
|
||||
{"raise", l_raise},
|
||||
-#if defined _POSIX_SOURCE || (defined(sun) || defined(__sun))
|
||||
+#ifdef __unix__
|
||||
{"kill", l_kill},
|
||||
#endif
|
||||
{NULL, NULL}
|
Loading…
Reference in a new issue