net-im/prosody: fix failure when using libevent
PR: 257952
This commit is contained in:
parent
a014bc6e6b
commit
c336760ec1
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= prosody
|
||||
PORTVERSION= 0.11.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-im
|
||||
MASTER_SITES= https://prosody.im/downloads/source/
|
||||
|
||||
@ -18,7 +19,7 @@ RUN_DEPENDS= ${LUA_REFMODLIBDIR}/socket/core.so:net/luasocket@${LUA_FLAVOR} \
|
||||
${LUA_REFMODLIBDIR}/bit.so:devel/lua-bitop@${LUA_FLAVOR}
|
||||
LIB_DEPENDS= libidn.so:dns/libidn
|
||||
|
||||
USES= compiler:c11 cpe gmake lua:52 shebangfix ssl
|
||||
USES= cpe gmake lua:52 shebangfix ssl
|
||||
SHEBANG_FILES= prosody prosodyctl tools/migration/prosody-migrator.lua
|
||||
LUA_PREMK= yes
|
||||
HAS_CONFIGURE= yes
|
||||
@ -31,7 +32,7 @@ CONFIGURE_ARGS= --prefix="${PREFIX}" \
|
||||
--with-random=arc4random \
|
||||
--c-compiler="${CC}" \
|
||||
--cflags="${CFLAGS}" \
|
||||
--add-cflags="-fPIC -std=c99 -I${LOCALBASE}/include -I${OPENSSLINC}" \
|
||||
--add-cflags="-fPIC -I${LOCALBASE}/include -I${OPENSSLINC}" \
|
||||
--linker="${CC}" \
|
||||
--ldflags="${LDFLAGS}" \
|
||||
--add-ldflags="-shared -L${LOCALBASE}/lib -L${OPENSSLLIB}" \
|
||||
|
||||
12
net-im/prosody/files/patch-util-src_pposix.c
Normal file
12
net-im/prosody/files/patch-util-src_pposix.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- util-src/pposix.c.orig 2021-08-03 09:53:04 UTC
|
||||
+++ util-src/pposix.c
|
||||
@@ -30,9 +30,6 @@
|
||||
#define _DARWIN_C_SOURCE
|
||||
#endif
|
||||
#endif
|
||||
-#ifndef _POSIX_C_SOURCE
|
||||
-#define _POSIX_C_SOURCE 200809L
|
||||
-#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
@ -1,9 +1,10 @@
|
||||
--- util-src/time.c.orig 2020-01-02 09:49:37 UTC
|
||||
--- util-src/time.c.orig 2021-08-03 09:53:04 UTC
|
||||
+++ util-src/time.c
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
@@ -1,7 +1,3 @@
|
||||
-#ifndef _POSIX_C_SOURCE
|
||||
-#define _POSIX_C_SOURCE 199309L
|
||||
+#define _POSIX_C_SOURCE 200809L
|
||||
#endif
|
||||
|
||||
-#endif
|
||||
-
|
||||
#include <time.h>
|
||||
#include <lua.h>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user