Unbreak autoconf check with clang by not using nested functions
This commit is contained in:
parent
ef8b885f1e
commit
0d0797bb14
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.26 2014/03/24 16:42:32 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.27 2017/09/27 11:22:43 dcoppa Exp $
|
||||
|
||||
COMMENT= FTP proxy
|
||||
|
||||
DISTNAME= jftpgw-0.13.5
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.mcknight.de/jftpgw/
|
||||
|
||||
@ -14,7 +14,8 @@ PERMIT_PACKAGE_CDROM= Yes
|
||||
WANTLIB= c
|
||||
|
||||
SEPARATE_BUILD= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_STYLE= autoconf
|
||||
AUTOCONF_VERSION=2.59
|
||||
CONFIGURE_ARGS+= --enable-crypt \
|
||||
--with-confpath="${SYSCONFDIR}" \
|
||||
--with-logpath="/var/log"
|
||||
|
15
net/jftpgw/patches/patch-configure_in
Normal file
15
net/jftpgw/patches/patch-configure_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-configure_in,v 1.3 2017/09/27 11:22:43 dcoppa Exp $
|
||||
|
||||
Index: configure.in
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -92,8 +92,7 @@ dnl partly from icecast
|
||||
AH_TEMPLATE(HAVE_SOCKLEN_T, Do we have the socklen_t data type?)
|
||||
AC_MSG_CHECKING([for unix98 socklen_t])
|
||||
AC_TRY_COMPILE([#include <sys/socket.h>],
|
||||
- [typedef socklen_t int;
|
||||
- int dummy (void) {return 1;}],
|
||||
+ [typedef socklen_t int;],
|
||||
AC_MSG_RESULT(yes)
|
||||
HAVE_SOCKLEN_T=yes,
|
||||
AC_MSG_RESULT(no)
|
Loading…
x
Reference in New Issue
Block a user