From owner-svn-ports-head@freebsd.org Mon May 9 12:23:01 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E7D0B33975; Mon, 9 May 2016 12:23:01 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 564371973; Mon, 9 May 2016 12:23:01 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u49CN0Id061091; Mon, 9 May 2016 12:23:00 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u49CN0A2061090; Mon, 9 May 2016 12:23:00 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201605091223.u49CN0A2061090@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Mon, 9 May 2016 12:23:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414841 - head/net/mosh/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2016 12:23:01 -0000 Author: zi Date: Mon May 9 12:23:00 2016 New Revision: 414841 URL: https://svnweb.freebsd.org/changeset/ports/414841 Log: - Fix build with libc++ 3.8.0 PR: 209019 Submitted by: dim@ Obtained from: upstream commit 9073983df3ff23f2230f941e525aa167ece50ddd Added: head/net/mosh/files/ head/net/mosh/files/patch-9073983df3ff23f2230f941e525aa167ece50ddd (contents, props changed) Added: head/net/mosh/files/patch-9073983df3ff23f2230f941e525aa167ece50ddd ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mosh/files/patch-9073983df3ff23f2230f941e525aa167ece50ddd Mon May 9 12:23:00 2016 (r414841) @@ -0,0 +1,60 @@ +--- configure.ac.orig 2015-07-23 06:34:37 UTC ++++ configure.ac +@@ -322,14 +322,18 @@ public: + [AC_MSG_RESULT([no])]) + AC_LANG_POP(C++) + +-AC_CHECK_DECLS([__builtin_bswap64, __builtin_ctz]) +- + AC_CHECK_DECL([mach_absolute_time], + [AC_DEFINE([HAVE_MACH_ABSOLUTE_TIME], [1], + [Define if mach_absolute_time is available.])], + , [[#include ]]) + +-AC_CHECK_DECLS([be64toh, betoh64], [], [], ++ ++AC_CHECK_DECLS([__builtin_ctz]) ++ ++AC_CHECK_DECLS([ffs], [], [], ++ [[#include ]]) ++ ++AC_CHECK_DECLS([be64toh, betoh64, bswap64, __builtin_bswap64], [], [], + [[#if defined(HAVE_ENDIAN_H) + #include + #elif defined(HAVE_SYS_ENDIAN_H) +--- src/crypto/ocb.cc.orig 2015-06-26 13:03:41 UTC ++++ src/crypto/ocb.cc +@@ -75,6 +75,15 @@ + #include "ae.h" + #include + #include ++#if defined(HAVE_STRINGS_H) ++#include ++#endif ++#if defined(HAVE_ENDIAN_H) ++#include ++#elif defined(HAVE_SYS_ENDIAN_H) ++#include ++#include ++#endif + + /* Define standard sized integers */ + #if defined(_MSC_VER) && (_MSC_VER < 1600) +@@ -101,6 +110,8 @@ + + #if _MSC_VER + #define bswap64(x) _byteswap_uint64(x) ++#elif HAVE_DECL_BSWAP64 ++ /* nothing */ + #elif HAVE_DECL___BUILTIN_BSWAP64 + #define bswap64(x) __builtin_bswap64(x) /* GCC 4.3+ */ + #else +@@ -121,6 +132,8 @@ + static inline unsigned ntz(unsigned x) {_BitScanForward(&x,x);return x;} + #elif HAVE_DECL___BUILTIN_CTZ + #define ntz(x) __builtin_ctz((unsigned)(x)) /* GCC 3.4+ */ ++#elif HAVE_DECL_FFS ++ #define ntz(x) (ffs(x) - 1) + #else + #if (L_TABLE_SZ <= 9) && (L_TABLE_SZ_IS_ENOUGH) /* < 2^13 byte texts */ + static inline unsigned ntz(unsigned x) {