Skip to content
Permalink
Browse files

Fix OS X clang build. Via FreeBSD Ports, so probably fixes FreeBSD too.

  • Loading branch information...
schmonz committed Jun 19, 2019
1 parent cc03dc0 commit faf7fd74e53890ba17e0ac942b6675d607a79684
Showing with 17 additions and 1 deletion.
  1. +2 −1 net/mosh/distinfo
  2. +15 −0 net/mosh/patches/patch-src_network_network.cc
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.8 2018/11/21 21:46:50 leot Exp $
$NetBSD: distinfo,v 1.9 2019/06/19 15:50:52 schmonz Exp $

SHA1 (mosh-1.3.2.tar.gz) = 58411e5f4ccd27252e55ef2411411aa1502da89a
RMD160 (mosh-1.3.2.tar.gz) = 09cec7da65f525c4a414c1506d153ac72ea38c8a
SHA512 (mosh-1.3.2.tar.gz) = f400e8fe7ba2ab7362311fc12a00ec69587505f901988aeee500fc68d38a388218500a3f602111c883ff23a9d43572114fcf0a8bf505df203691e5b597615769
Size (mosh-1.3.2.tar.gz) = 359574 bytes
SHA1 (patch-src_network_network.cc) = cb3fbea57b2c9c208e61ba4c7a7d329aabb35d9e
@@ -0,0 +1,15 @@
$NetBSD: patch-src_network_network.cc,v 1.1 2019/06/19 15:50:52 schmonz Exp $

Fix OS X clang build. Via FreeBSD Ports, so probably fixes FreeBSD too.

--- src/network/network.cc.orig 2017-07-22 21:14:53.000000000 +0000
+++ src/network/network.cc
@@ -335,7 +335,7 @@ bool Connection::try_bind( const char *a
}
}

- if ( bind( sock(), &local_addr.sa, local_addr_len ) == 0 ) {
+ if ( ::bind( sock(), &local_addr.sa, local_addr_len ) == 0 ) {
set_MTU( local_addr.sa.sa_family );
return true;
} else if ( i == search_high ) { /* last port to search */

0 comments on commit faf7fd7

Please sign in to comment.
You can’t perform that action at this time.