Index: Makefile =================================================================== --- Makefile (revision 487458) +++ Makefile (working copy) @@ -20,8 +20,7 @@ ${LUA_MODLIBDIR}/bit.so:devel/lua51-bitop LIB_DEPENDS= libidn.so:dns/libidn -USES= cpe gmake lua:51 shebangfix ssl -USE_CSTD= c99 +USES= compiler:c11 cpe gmake lua:51 shebangfix ssl SHEBANG_FILES= prosody prosodyctl LUA_PREMK= yes HAS_CONFIGURE= yes Index: files/patch-configure =================================================================== --- files/patch-configure (revision 487458) +++ files/patch-configure (working copy) @@ -1,4 +1,4 @@ ---- configure.orig 2017-09-28 13:07:47 UTC +--- configure.orig 2018-05-30 22:10:09 UTC +++ configure @@ -16,10 +16,10 @@ LUA_LIBDIR="/usr/lib" IDN_LIB="idn" @@ -14,3 +14,14 @@ PRNG= PRNGLIBS= +@@ -202,8 +202,8 @@ do + if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]; then + LUA_INCDIR="/usr/local/include/lua51" + LUA_INCDIR_SET=yes +- CFLAGS="-Wall -fPIC -I/usr/local/include" +- LDFLAGS="-I/usr/local/include -L/usr/local/lib -shared" ++ CFLAGS+="-Wall -fPIC -I/usr/local/include" ++ LDFLAGS+="-I/usr/local/include -L/usr/local/lib -shared" + LUA_SUFFIX="51" + LUA_SUFFIX_SET=yes + LUA_DIR=/usr/local