mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Remove comment [1]
- Remove forgotten files/patch-unix.c https://github.com/lsalzman/enet/issues/42 Reported by: mat [1]
This commit is contained in:
parent
27be3d6dad
commit
018bf00de8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386817
@ -6,7 +6,6 @@ PORTVERSION= 1.3.13
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://enet.bespin.org/download/
|
||||
#http://enet.bespin.org/download/enet-1.3.13.tar.gz
|
||||
|
||||
MAINTAINER= nemysis@FreeBSD.org
|
||||
COMMENT= Simple and robust communication library based on UDP
|
||||
|
@ -1,20 +0,0 @@
|
||||
--- 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);
|
Loading…
Reference in New Issue
Block a user