From owner-svn-ports-head@FreeBSD.ORG Sat Feb 14 10:48:25 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CA9FF8C; Sat, 14 Feb 2015 10:48:25 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 88404FAC; Sat, 14 Feb 2015 10:48:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1EAmP0C080951; Sat, 14 Feb 2015 10:48:25 GMT (envelope-from nemysis@FreeBSD.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1EAmP4d080950; Sat, 14 Feb 2015 10:48:25 GMT (envelope-from nemysis@FreeBSD.org) Message-Id: <201502141048.t1EAmP4d080950@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: nemysis set sender to nemysis@FreeBSD.org using -f From: Rusmir Dusko Date: Sat, 14 Feb 2015 10:48:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378956 - head/net/enet/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.18-1 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: Sat, 14 Feb 2015 10:48:25 -0000 Author: nemysis Date: Sat Feb 14 10:48:24 2015 New Revision: 378956 URL: https://svnweb.freebsd.org/changeset/ports/378956 QAT: https://qat.redports.org/buildarchive/r378956/ Log: - Add patch, fix build on DragonFly [1] https://github.com/lsalzman/enet/issues/42 PR: 197610 Submitted by: jbeich [1] Added: head/net/enet/files/ head/net/enet/files/patch-unix.c (contents, props changed) Added: head/net/enet/files/patch-unix.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/enet/files/patch-unix.c Sat Feb 14 10:48:24 2015 (r378956) @@ -0,0 +1,20 @@ +--- unix.c.orig 2014-04-24 09:49:05.000000000 +0200 ++++ unix.c 2015-02-14 11:32:25.346006823 +0100 +@@ -104,7 +104,7 @@ + char buffer [2048]; + int errnum; + +-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) + gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); + #else + hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); +@@ -162,7 +162,7 @@ + + in.s_addr = address -> host; + +-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) + gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); + #else + hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum);