svn commit: r378956 - head/net/enet/files

Rusmir Dusko nemysis at FreeBSD.org
Sat Feb 14 10:48:25 UTC 2015


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);


More information about the svn-ports-head mailing list